[PackageKit-commit] packagekit: Branch 'master' - 3 commits

Richard Hughes hughsient at kemper.freedesktop.org
Mon Oct 27 04:34:53 PDT 2008


 NEWS                       |   50 +++++++++++++++++++++++++++++++++++++++++++++
 backends/yum/yumBackend.py |   14 +++++++++---
 configure.ac               |    2 -
 docs/html/pk-download.html |    3 +-
 src/pk-transaction-list.c  |   13 ++++++-----
 5 files changed, 70 insertions(+), 12 deletions(-)

New commits:
commit 356b9d32f52ede9d71776309c3cb86810c9cf1c0
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon Oct 27 11:34:11 2008 +0000

    Release version 0.3.9

diff --git a/NEWS b/NEWS
index ee5215a..373528b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,53 @@
+Version 0.3.9
+~~~~~~~~~~~~~~
+Released: 2008-10-27
+
+Notes:
+- Nothing much new here, just lots of translation updates and bugfixes.
+
+Translations:
+ - Added Gujarati translation (Ankitkumar Patel)
+ - Update Czech translation (Adam Pribyl)
+ - Update Malayalam (ml) translation (Ani Peter)
+ - Update Swedish translation (Daniel Nylander)
+ - Update Spanish translation (Domingo Becker)
+ - Update Serbian translation (Igor Miletic)
+ - Update French translation (PabloMartin-Gomez)
+ - Update Brazilian Portuguese translation (Igor Pires Soares)
+ - Updated Polish translation (Piotr DrÄ…g)
+ - Updated Bengali India translation (Runa Bhattacharjee)
+ - Updated German translation (Stefan Posdzich)
+ - Updated Traditional Chinese translation (Terry Chuang)
+ - Updated Finnish translation (Ville-Pekka Vainio)
+ - Update Simplified Chinese translation (Wei Liu, 甘露(Lu Gan))
+
+New Features:
+ - Provide more feedback to what is going on when we create a service pack,
+   and allow it to be cancelled (Richard Hughes)
+ - Print service pack creation status in pkgenpack and cancel it if we
+   ctrl-c to cancel (Richard Hughes)
+
+Bugfixes:
+ - Fix the check for installed, else we fail the resolve in pkcon (Richard Hughes)
+ - Add a type= key to metadata.conf so we can tell if the service pack is an
+   update or install pack (Richard Hughes)
+ - Fix excluding a list of packages in pkgenpack by adding and using a proper
+   equality function (Richard Hughes)
+ - Catch exceptions from sys.stdin.readline to fix rh#468486 (Richard Hughes)
+ - glib: Allow GetOldTransactions to be run sync (Richard Hughes)
+ - glib: Send a more precise error code when we fail a transaction (Richard Hughes)
+
+Backends:
+ - yum: Use the external yum API to change the config, not the internal one (James Antill)
+ - yum: Be cleverer when installing service packs of different types (Richard Hughes)
+ - yum: Emit a proper error message when we fail to depsolve and then have
+        nothing to do. Fixes rh#466006 (Richard Hughes)
+ - yum: Do some testing when yum has _no_ metadata and the user is offline, and
+        make sure we don't send internal error in these cases (Richard Hughes)
+ - yum: Handle utf8 error values to fix non English locales. Fixes rh#468602 (Richard Hughes)
+ - yum: Fix the newest filter to properly output installed status (Richard Hughes)
+ - zypp: Update includes to match the new header layout (Scott Reeves)
+
 Version 0.3.8
 ~~~~~~~~~~~~~~
 Released: 2008-10-20
diff --git a/configure.ac b/configure.ac
index b111a51..eadc6fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ DEVELOPMENT_RELEASE=no
 # AGE		If libpackagekit can be linked into executables which can be
 # 		built with previous versions of this library. Don't use.
 LT_CURRENT=10
-LT_REVISION=0
+LT_REVISION=1
 LT_AGE=0
 AC_SUBST(LT_CURRENT)
 AC_SUBST(LT_REVISION)
diff --git a/docs/html/pk-download.html b/docs/html/pk-download.html
index 245c25f..8147942 100644
--- a/docs/html/pk-download.html
+++ b/docs/html/pk-download.html
@@ -77,13 +77,14 @@ Releases are normally once every 1-2 weeks.
 <tr><td>0.3.6</td><td></td><td>2008-10-06</td></tr>
 <tr><td>0.3.7</td><td></td><td>2008-10-13</td></tr>
 <tr><td>0.3.8</td><td></td><td>2008-10-20</td></tr>
+<tr><td>0.3.9</td><td></td><td>2008-10-27</td></tr>
 </table>
 <h3>
 ABI Stable Versions:
 </h3>
 <p>
 These are versions where we will not break ABI, API or localisations.
-Releases are less frequent, usually less than once a month.
+Releases are less frequent, usually every few months.
 </p>
 <table>
 <tr><td><b>Version</b></td><td>&nbsp;&nbsp;</td><td><b>Date</b></td></tr>
commit 2c4a5315f456569c9494c972d28cc3a2bd1837ce
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon Oct 27 11:08:22 2008 +0000

    trivial: relax the timings a little in the PkTransactionList checks in case we end up waiting for finished

diff --git a/src/pk-transaction-list.c b/src/pk-transaction-list.c
index f95cc0d..2e5a018 100644
--- a/src/pk-transaction-list.c
+++ b/src/pk-transaction-list.c
@@ -755,6 +755,7 @@ pk_transaction_list_test_finished_cb (PkTransaction *transaction, const gchar *e
 static void
 pk_transaction_list_test_delay_cb (EggTest *test)
 {
+	egg_debug ("quitting loop");
 	egg_test_loop_quit (test);
 }
 
@@ -997,7 +998,7 @@ pk_transaction_list_test (EggTest *test)
 
 	/* wait for Cleanup */
 	g_timeout_add_seconds (5, (GSourceFunc) pk_transaction_list_test_delay_cb, test);
-	egg_test_loop_wait (test, 6000);
+	egg_test_loop_wait (test, 10000);
 	egg_test_loop_check (test);
 
 	/************************************************************/
@@ -1051,7 +1052,7 @@ pk_transaction_list_test (EggTest *test)
 
 	/* wait for Cleanup */
 	g_timeout_add_seconds (5, (GSourceFunc) pk_transaction_list_test_delay_cb, test);
-	egg_test_loop_wait (test, 6000);
+	egg_test_loop_wait (test, 10000);
 	egg_test_loop_check (test);
 
 	/************************************************************/
@@ -1124,7 +1125,7 @@ pk_transaction_list_test (EggTest *test)
 	g_strfreev (array);
 
 	/* wait for first action */
-	egg_test_loop_wait (test, 6000);
+	egg_test_loop_wait (test, 10000);
 	egg_test_loop_check (test);
 
 	/************************************************************/
@@ -1170,7 +1171,7 @@ pk_transaction_list_test (EggTest *test)
 				 item3->running, item3->committed, item3->finished);
 
 	/* wait for second action */
-	egg_test_loop_wait (test, 6000);
+	egg_test_loop_wait (test, 10000);
 	egg_test_loop_check (test);
 
 	/************************************************************/
@@ -1216,7 +1217,7 @@ pk_transaction_list_test (EggTest *test)
 				 item3->running, item3->committed, item3->finished);
 
 	/* wait for third action */
-	egg_test_loop_wait (test, 6000);
+	egg_test_loop_wait (test, 10000);
 	egg_test_loop_check (test);
 
 	/************************************************************/
@@ -1263,7 +1264,7 @@ pk_transaction_list_test (EggTest *test)
 
 	/* wait for Cleanup */
 	g_timeout_add_seconds (5, (GSourceFunc) pk_transaction_list_test_delay_cb, test);
-	egg_test_loop_wait (test, 6000);
+	egg_test_loop_wait (test, 10000);
 	egg_test_loop_check (test);
 
 	/************************************************************/
commit b0f0ed9e79abfe0711838607d3260f110a6aeb70
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon Oct 27 10:04:30 2008 +0000

    yum: fix the newest filter to properly output installed and available status

diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py
index 8765009..9a75200 100755
--- a/backends/yum/yumBackend.py
+++ b/backends/yum/yumBackend.py
@@ -377,13 +377,19 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
             pkgs.extend(ygl.recent)
         except yum.Errors.RepoError, e:
             self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+
+        installed = []
+        available = []
         for pkg in pkgs:
-            # check if not an update
-            if self.yumbase.rpmdb.installed(name=pkg.name):
-                pkgs.remove(pkg)
+            instpo = self.yumbase.rpmdb.searchNevra(name=pkg.name, epoch=pkg.epoch, ver=pkg.ver, rel=pkg.rel, arch=pkg.arch)
+            if len(instpo) > 0:
+                installed.append(instpo[0])
+            else:
+                available.append(pkg)
 
         # add list to filter
-        pkgfilter.add_available(pkgs)
+        pkgfilter.add_installed(installed)
+        pkgfilter.add_available(available)
         package_list = pkgfilter.post_process()
         self._show_package_list(package_list)
         self.percentage(100)


More information about the PackageKit-commit mailing list