summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-11-12 23:54:21 +0000
committerJeremy Katz <katzj@redhat.com>2002-11-12 23:54:21 +0000
commit0798006dd20eb3471960ccbe7f220c6e5a8f6773 (patch)
tree5a7aea86a564a2b55746837a0bec8a1fbe9ec344 /packages.py
parentbc8dbf24df561ce44311d903e903b79b630efc8f (diff)
downloadanaconda-0798006dd20eb3471960ccbe7f220c6e5a8f6773.tar.gz
anaconda-0798006dd20eb3471960ccbe7f220c6e5a8f6773.tar.xz
anaconda-0798006dd20eb3471960ccbe7f220c6e5a8f6773.zip
rpmlib changes. this gets rid of the (incorrect) error message about the comps package not getting installed
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index c3d976b65..61076e8b4 100644
--- a/packages.py
+++ b/packages.py
@@ -1005,8 +1005,9 @@ def doPostInstall(method, id, intf, instPath):
stdout = "/dev/tty5",
stderr = "/dev/tty5",
root = instPath)
+ ts = rpm.TransactionSet()
fd = os.open(id.compspkg, os.O_RDONLY)
- h = rpm.headerFromPackage(fd)[0]
+ h = ts.hdrFromFdno(fd)
os.close(fd)
if upgrade:
text = _("Upgrading %s-%s-%s.\n")
@@ -1016,6 +1017,7 @@ def doPostInstall(method, id, intf, instPath):
h['version'],
h['release']))
os.unlink(id.compspkg)
+ del ts
except:
log("failed to install comps.rpm. oh well")