summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-01-13 21:49:54 +0000
committerJeremy Katz <katzj@redhat.com>2003-01-13 21:49:54 +0000
commita16df835c10a0f98fecec6daadea94f63e203b20 (patch)
tree3839b5535f7310d17a208f3d51b10ad2e1ccd1fc /packages.py
parent4b871d4a62936cb6ae4da9c4e0a3b36f6aefca7e (diff)
downloadanaconda-a16df835c10a0f98fecec6daadea94f63e203b20.tar.gz
anaconda-a16df835c10a0f98fecec6daadea94f63e203b20.tar.xz
anaconda-a16df835c10a0f98fecec6daadea94f63e203b20.zip
don't check the sig on comps.rpm either (#69951 returns)
remove rpm db env files
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index c57a66e5f..064804c81 100644
--- a/packages.py
+++ b/packages.py
@@ -869,6 +869,13 @@ def doInstall(method, id, intf, instPath):
method.filesDone ()
+ # rpm environment files go bye-bye
+ for file in ["__db.001", "__db.002", "__db.003"]:
+ try:
+ os.unlink("%s/var/lib/rpm/%s" %(instPath, file))
+ except Exception, e:
+ log("failed to unlink /var/lib/rpm/%s: %s" %(file,e))
+
if upgrade:
instLog.write(_("\n\nThe following packages were available in "
"this version but NOT upgraded:\n"))
@@ -1043,6 +1050,7 @@ def doPostInstall(method, id, intf, instPath):
stderr = "/dev/tty5",
root = instPath)
ts = rpm.TransactionSet()
+ ts.setVSFlags(~(rpm.RPMVSF_NORSA|rpm.RPMVSF_NODSA))
ts.closeDB()
fd = os.open(id.compspkg, os.O_RDONLY)
h = ts.hdrFromFdno(fd)