summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-02-10 00:44:59 +0000
committerErik Troan <ewt@redhat.com>2001-02-10 00:44:59 +0000
commit5cfc4859f52f9aec1a94919f251bf6032e3be534 (patch)
tree2abc3b38f8c8f9cfcfd0ba62a10d2d1c534ade44 /comps.py
parenta2d421d00db7b203e6a4ce79475c3ae51a772684 (diff)
downloadanaconda-5cfc4859f52f9aec1a94919f251bf6032e3be534.tar.gz
anaconda-5cfc4859f52f9aec1a94919f251bf6032e3be534.tar.xz
anaconda-5cfc4859f52f9aec1a94919f251bf6032e3be534.zip
use two part header lists
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/comps.py b/comps.py
index 65d509a1f..3885a363b 100644
--- a/comps.py
+++ b/comps.py
@@ -118,6 +118,11 @@ class HeaderList:
def list(self):
return self.packages.values()
+ def mergeFullHeaders(self, file):
+ fd = os.open(file, os.O_RDONLY)
+ rpm.mergeHeaderListFromFD(self.hdlist, fd, 1000004)
+ os.close(fd)
+
def __init__(self, hdlist, compatPackages = None, noscore = 0):
self.hdlist = hdlist
self.packages = {}