diff options
-rw-r--r-- | comps.py | 3 | ||||
-rw-r--r-- | todo.py | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -116,7 +116,10 @@ class HeaderList: self.hdlist = hdlist self.packages = {} newCompat = [] + self.preordered = 1 for h in hdlist: + if h[1000003] == None: + self.preordered = 0 name = h[rpm.RPMTAG_NAME] if noscore: self.packages[name] = Package(h) @@ -1618,8 +1618,8 @@ class ToDo: total = total + 1 totalSize = totalSize + (p[rpm.RPMTAG_SIZE] / 1024 ) - # XXX I've inserted them in order already. - # ts.order() + if not self.hdList.preordered: + ts.order() if self.upgrade: logname = '/tmp/upgrade.log' |