pkgorder patch

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

 



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: pgpMRli69GN2S.pgp
Description: PGP signature


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux