Whamcloud - gitweb
LU-407 Fix lustre-modules rpm name in spec file.
authorChristopher J. Morrone <morrone2@llnl.gov>
Thu, 9 Jun 2011 20:14:11 +0000 (13:14 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Aug 2011 15:50:37 +0000 (11:50 -0400)
commit7fe3a1558a5c990d21759e07c89c33b9cd30599b
treeb36fdb0dc94279c84288e1423e6dd9a2afbd7b2b
parent421d8e98f309870475aadc05aa81a60e9acd8e65
LU-407 Fix lustre-modules rpm name in spec file.

RHEL and Fedora kernels include ".%{_arch}" in the kernel's version
string.  Since Lustre includes the kernel version in its rpms, it
can appear that a double architecture name appears at the end.  Really
one is from the kernel, and one is from Lustre.  Trying to change that
is probably more trouble than it is worth.

This seems to cause problems with rpm's understanding of rpm names.  To
fix that this patch takes Andreas's suggestion of grep'ing the full
rpm name from "rpm -q kernel-modules".

We also add "|| true" to the last line of the %preun scriptlet so that
failure does not aport installation.

Finally, we also remove the redundant greps in the postun scriptlet.

Change-Id: I2c71e853e28ec6e0907eb4ea7c3205ca6e5dd873
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/934
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
lustre.spec.in