summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-03 22:31:32 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-03 22:31:32 +0000
commit9882eb22260c4c8a491c234cc1cc6f1c7e6acf34 (patch)
tree7f8cbd8bbf4d05728f2619d4916c11e12b4f8ce6
parent62a3c7e4973ff9403785aaf9201cdc55a5b90e50 (diff)
downloaddrakiso-9882eb22260c4c8a491c234cc1cc6f1c7e6acf34.tar
drakiso-9882eb22260c4c8a491c234cc1cc6f1c7e6acf34.tar.gz
drakiso-9882eb22260c4c8a491c234cc1cc6f1c7e6acf34.tar.bz2
drakiso-9882eb22260c4c8a491c234cc1cc6f1c7e6acf34.tar.xz
drakiso-9882eb22260c4c8a491c234cc1cc6f1c7e6acf34.zip
workaround rpm bug that leaves a corrupted rpm DB in chroot
-rwxr-xr-xdraklive3
1 files changed, 3 insertions, 0 deletions
diff --git a/draklive b/draklive
index 0a1798b..28084a8 100755
--- a/draklive
+++ b/draklive
@@ -801,6 +801,9 @@ sub post_install_system {
run_("chroot " . get_system_root($live) . " rpm -qa | sort > " . get_builddir($live) . "/packages.lst");
+ #- workaround rpm bug that leaves a corrupted rpm DB in chroot
+ rm_rf(glob_(get_builddir($live) . "/var/lib/rpm/__db.*"));
+
umask $previous_umask;
}