]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- you need coreutils to cp, and in vserver build coreutils is not there yet
authorElan Ruusamäe <glen@delfi.ee>
Wed, 31 Oct 2012 07:03:41 +0000 (09:03 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 31 Oct 2012 07:03:41 +0000 (09:03 +0200)
rpm.spec

index 1e40cbb592ea9f79c094b437fad2b0f9e27828b5..60711d8d7f915177737f6ef43966c017ba798a20 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -1174,15 +1174,15 @@ fi
 
 %posttrans
 if [ -x %{_rpmlibdir}/bin/rpmdb_checkversion ] && \
-               ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm ; then
-       if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
-                       /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release} ; then
+               ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
+       if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && [ -x /bin/cp ] && \
+                       /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
                echo
                echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
                echo
        fi
        if [ -x %{_rpmlibdir}/bin/dbconvert ]; then
-               if ! %{_rpmlibdir}/bin/dbconvert --rebuilddb ; then
+               if ! %{_rpmlibdir}/bin/dbconvert --rebuilddb; then
                        echo
                        echo "rpm database conversion failed!"
                        echo "You have to run  %{_rpmlibdir}/bin/dbconvert manually"
This page took 0.039346 seconds and 4 git commands to generate.