Order the scriptlets logically.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 8 Jul 2008 15:11:09 +0000 (15:11 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 8 Jul 2008 15:11:09 +0000 (15:11 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2729 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver.spec.in

index ab393c2..5d37de3 100644 (file)
@@ -255,6 +255,11 @@ copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
 
 
+%pre build
+x="%_libdir/util-vserver/distributions/etch"
+test -d "$x" && mv "$x" "$x.rpmsave" || :
+
+
 %post build
 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
 
@@ -268,11 +273,6 @@ f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
 
 
-%pre build
-x="%_libdir/util-vserver/distributions/etch"
-test -d "$x" && mv "$x" "$x.rpmsave" || :
-
-
 ## Temporary workaround to remove old v_* files; it will conflict
 ## somehow with the -legacy package but can be fixed by reinstalling
 ## this package.