summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-01-26 20:01:35 +0000
committerJeremy Katz <katzj@redhat.com>2007-01-26 20:01:35 +0000
commitff5ec32fb1ebe1889fb713c53ca78a15233ba3bc (patch)
tree4bee5c49f20d558b5c3470eeba435fc4e77db9fb /scripts
parent3a1b243db51b9ef2fa3a4aace40f347877f36d08 (diff)
downloadanaconda-ff5ec32fb1ebe1889fb713c53ca78a15233ba3bc.tar.gz
anaconda-ff5ec32fb1ebe1889fb713c53ca78a15233ba3bc.tar.xz
anaconda-ff5ec32fb1ebe1889fb713c53ca78a15233ba3bc.zip
2007-01-26 Jeremy Katz <katzj@redhat.com>
* scripts/pkgorder: Use rpmlib for ordering, not incomplete bits in yum
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pkgorder12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder
index aaaba751f..135f71c83 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -72,11 +72,13 @@ class PackageOrderer(YumSorter):
#XXX: sigh
processed = {}
def processTransaction(ds):
-# ds.tsInfo.makelists()
-# print len(ds.tsInfo.installed)
-# import pdb; pdb.set_trace()
- for pkgtup in ds.tsInfo.sort():
- fname = ds.tsInfo.pkgdict[pkgtup][0].po.returnSimple('relativepath')
+ del ds.ts
+ ds.initActionTs()
+ ds.populateTs(keepold=0)
+ ds.ts.check()
+ ds.ts.order()
+ for (hdr, path) in ds.ts.ts.getKeys():
+ fname = os.path.basename(path)
fpattern = "%s/%s*" % (toppath, fname.rsplit('.', 2)[0])
printMatchingPkgs(fpattern)