<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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).<br>
<br>
--<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">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):</pre>
<br>
</body>
</html>