[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

pkgorder patch



The recent change to packageorder seems to have broken rawhide.  This patch 
makes it work again, but this seems fragile and not compatible with RHEL, nor 
with any compose that might still have rpms in Product/RPMS/

I also switched to using os.path.join to create the path, seems a little 
cleaner.

-- 
Jesse Keating
Release Engineer: Fedora
--- ./pkgorder.jk       2007-01-27 11:17:08.000000000 -0500
+++ ./pkgorder  2007-01-27 11:15:36.000000000 -0500
@@ -79,7 +79,7 @@
     ds.ts.order()
     for (hdr, path) in ds.ts.ts.getKeys():
         fname = os.path.basename(path)
-        fpattern = "%s/%s*" % (toppath, fname.rsplit('.', 2)[0])
+        fpattern = os.path.join(toppath, product, "%s*" % fname.rsplit('.', 2)[0])
         printMatchingPkgs(fpattern)

Attachment: pgpj6xC6RMZWI.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]