SPECS (LINUX_2_6): kernel.spec - reverse if order on %postun headers
glen
glen at pld-linux.org
Tue Nov 1 00:04:06 CET 2005
Author: glen Date: Mon Oct 31 23:04:06 2005 GMT
Module: SPECS Tag: LINUX_2_6
---- Log message:
- reverse if order on %postun headers
---- Files affected:
SPECS:
kernel.spec (1.441.2.1276 -> 1.441.2.1277)
---- Diffs:
================================================================
Index: SPECS/kernel.spec
diff -u SPECS/kernel.spec:1.441.2.1276 SPECS/kernel.spec:1.441.2.1277
--- SPECS/kernel.spec:1.441.2.1276 Mon Oct 31 23:55:30 2005
+++ SPECS/kernel.spec Tue Nov 1 00:03:59 2005
@@ -1383,13 +1383,14 @@
%depmod %{version}-%{release}smp
%post headers
+# TODO: avoid %%post here and package symlink?
rm -f /usr/src/linux
ln -snf linux-%{version} /usr/src/linux
%postun headers
-if [ -L %{_prefix}/src/linux ]; then
- if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
- if [ "$1" = "0" ]; then
+if [ "$1" = "0" ]; then
+ if [ -L %{_prefix}/src/linux ]; then
+ if [ "`ls -l %{_prefix}/src/linux | awk '{ print $10 }'`" = "linux-%{version}" ]; then
rm -f %{_prefix}/src/linux
fi
fi
@@ -1694,6 +1695,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.441.2.1277 2005/10/31 23:03:59 glen
+- reverse if order on %postun headers
+
Revision 1.441.2.1276 2005/10/31 22:55:30 averne
- patch9 should be applied with -p1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/kernel.spec?r1=1.441.2.1276&r2=1.441.2.1277&f=u
More information about the pld-cvs-commit
mailing list