summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-02-14 09:17:23 +0000
committerMatt Wilson <msw@redhat.com>2001-02-14 09:17:23 +0000
commitdb2b874a7afbe1b894e62341c54c16e08f30cce6 (patch)
treefc4f82c58b14d751cdf8e1161159724df724c116 /comps.py
parent74ee00ef3682c5f7c4dea13acf16a8c2bae84c23 (diff)
downloadanaconda-db2b874a7afbe1b894e62341c54c16e08f30cce6.tar.gz
anaconda-db2b874a7afbe1b894e62341c54c16e08f30cce6.tar.xz
anaconda-db2b874a7afbe1b894e62341c54c16e08f30cce6.zip
only care about the packages we are actually installing when checking the preorder...
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/comps.py b/comps.py
index 3885a363b..85677fd6f 100644
--- a/comps.py
+++ b/comps.py
@@ -123,11 +123,18 @@ class HeaderList:
rpm.mergeHeaderListFromFD(self.hdlist, fd, 1000004)
os.close(fd)
+ def preordered(self):
+ preordered = 1
+ for h in self.selected():
+ if h[1000003] == None:
+ preordered = 0
+ return preordered
+
+
def __init__(self, hdlist, compatPackages = None, noscore = 0):
self.hdlist = hdlist
self.packages = {}
newCompat = []
- self.preordered = 1
for h in hdlist:
if h[1000003] == None:
self.preordered = 0