Properly order packages returned by PackageKit so automations
executed on 64bit systems won't sometimes pull 32bit packages due to
a lack of ordering (Jockey). -- diff -rupN PackageKit-0.6.22.orig/backends/yum/yumFilter.py PackageKit-0.6.22/backends/yum/yumFilter.py --- PackageKit-0.6.22.orig/backends/yum/yumFilter.py 2012-12-19 14:39:41.148069422 -0500 +++ PackageKit-0.6.22/backends/yum/yumFilter.py 2012-12-19 14:56:49.163672753 -0500 @@ -88,6 +88,8 @@ class YumFilter(PackagekitFilter): if (base, version) not in base_list_already_got: output_list.append((pkg, status)) base_list_already_got.append ((base, version)) + output_list.sort() + output_list.reverse() return output_list def _do_newest_filtering(self, pkglist): @@ -116,6 +118,8 @@ class YumFilter(PackagekitFilter): del newest[key] newest[key] = (pkg, state) + newest.values().sort() + newest.values().reverse() return newest.values() def post_process(self): @@ -127,6 +131,8 @@ class YumFilter(PackagekitFilter): if FILTER_NEWEST in self.fltlist: self.package_list = self._do_newest_filtering(self.package_list) + self.package_list.sort() + self.package_list.reverse() return self.package_list def _pkg_compare(self, pkg1, pkg2): |
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel