[yum-commits] Branch 'yum-3_2_X' - yum/sqlitesack.py

James Antill james at osuosl.org
Thu Feb 26 21:10:10 UTC 2009


 yum/sqlitesack.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8873dfa638646e4c300cc11d2608b135181c8a01
Author: James Antill <james at and.org>
Date:   Thu Feb 26 16:09:47 2009 -0500

    Make sure the changelog comes out in the correct date order

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index 9726be9..7599808 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -209,7 +209,8 @@ class YumAvailablePackageSqlite(YumAvailablePackage, PackageObject, RpmBase):
             cur = self._sql_MD('other',
                                "SELECT date, author, changelog " \
                                "FROM   changelog JOIN packages USING(pkgKey) " \
-                               "WHERE  pkgId = ?", (self.pkgId,))
+                               "WHERE  pkgId = ? ORDER BY date DESC",
+                               (self.pkgId,))
             # Check count(pkgId) here, the same way we do in searchFiles()?
             # Failure mode is much less of a problem.
             for ob in cur:


More information about the Yum-commits mailing list