[packagekit] packagekit: Branch 'master' - 9 commits

Richard Hughes hughsient at kemper.freedesktop.org
Wed Mar 5 15:04:26 PST 2008


 NEWS                                                  |   54 ++++++++++++++++++
 backends/test/helpers/PackageKitDbusTest.py           |    4 +
 backends/test/helpers/packagekit                      |    1 
 backends/yum2/helpers/yumDBUSBackend.py               |    1 
 configure.ac                                          |    4 -
 data/org.freedesktop.PackageKitTestBackend.service.in |    2 
 docs/html/pk-download.html                            |    1 
 src/pk-backend-dbus.c                                 |   10 +--
 8 files changed, 67 insertions(+), 10 deletions(-)

New commits:
commit 29ccc100963c2099ad1578cfd2536a862872ccff
Author: Scott Reeves <sreeves at novell.com>
Date:   Tue Mar 4 21:17:42 2008 -0700

    require new libzypp (4.3.1)

diff --git a/configure.ac b/configure.ac
index dd6239c..3137a27 100755
--- a/configure.ac
+++ b/configure.ac
@@ -502,7 +502,7 @@ if test x$enable_alpm = xyes; then
 fi
 
 if test x$enable_zypp = xyes; then
-	PKG_CHECK_MODULES(ZYPP, libzypp >= 4.2.3)
+	PKG_CHECK_MODULES(ZYPP, libzypp >= 4.3.1)
 	AC_SUBST(ZYPP_CFLAGS)
 	AC_SUBST(ZYPP_LIBS)
 fi
commit 3360132be02ea9bf9c0ebe637295e218b75763c5
Author: Luke Macken <lmacken at redhat.com>
Date:   Tue Mar 4 23:33:36 2008 -0500

    Remove what looks to be an unnecessary 'yumbase = self.yumbase' assignment

diff --git a/backends/yum2/helpers/yumDBUSBackend.py b/backends/yum2/helpers/yumDBUSBackend.py
index 56003a4..950b79f 100755
--- a/backends/yum2/helpers/yumDBUSBackend.py
+++ b/backends/yum2/helpers/yumDBUSBackend.py
@@ -309,7 +309,6 @@ class PackageKitYumBackend(PackageKitBaseBackend):
         print "Now in doInit()"
         self.yumbase = PackageKitYumBase()
         print "new yumbase object"
-        yumbase = self.yumbase
         self._setup_yum()
         print "yum set up"
 
commit 8c489d86afc1fdcdeab274f8948ad92cbe36d388
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Mar 5 00:49:38 2008 +0000

    a better DBUS test

diff --git a/backends/test/helpers/PackageKitDbusTest.py b/backends/test/helpers/PackageKitDbusTest.py
index 6240e84..1a12b38 100755
--- a/backends/test/helpers/PackageKitDbusTest.py
+++ b/backends/test/helpers/PackageKitDbusTest.py
@@ -44,6 +44,7 @@ class PackageKitTestBackendService(PackageKitBaseBackend):
 
     def doInit(self):
         print 'Init!'
+        time.sleep(0.1)
 
     def doLock(self):
         print 'Lock!'
@@ -58,8 +59,9 @@ class PackageKitTestBackendService(PackageKitBaseBackend):
         print "SearchName (%s, %s)" % (filters, search)
         self.AllowCancel(True)
         self.StatusChanged(STATUS_QUERY)
+        time.sleep(1)
         self.Package(INFO_AVAILABLE, "foo;0.0.1;i398;fedora", "Foo")
-        time.sleep(10)
+        time.sleep(1)
         self.Package(INFO_AVAILABLE, "foo-devel;0.0.1;i398;fedora", "Foo build files")
         self.Finished(EXIT_SUCCESS)
 
commit e734398bc4a56edc6e737c455ef7d7f9dd9b65bb
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Mar 5 00:14:26 2008 +0000

    link in local packagekit python bits for the test scripts

diff --git a/backends/test/helpers/packagekit b/backends/test/helpers/packagekit
new file mode 120000
index 0000000..73525c9
--- /dev/null
+++ b/backends/test/helpers/packagekit
@@ -0,0 +1 @@
+../../../python/packagekit/
\ No newline at end of file
commit 1d1fc8bb95b4e9d45a99c12cbbff45f9e58dcbe3
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Mar 5 00:09:23 2008 +0000

    do search name, nor search file -- we actually emulate that

diff --git a/src/pk-backend-dbus.c b/src/pk-backend-dbus.c
index 04f3689..5aa55c5 100644
--- a/src/pk-backend-dbus.c
+++ b/src/pk-backend-dbus.c
@@ -1331,7 +1331,7 @@ libst_backend_dbus (LibSelfTest *test)
 
 	/************************************************************/
 	libst_title (test, "search by name");
-	ret = pk_backend_dbus_search_file (backend_dbus, "none", "power");
+	ret = pk_backend_dbus_search_name (backend_dbus, "none", "power");
 	elapsed = libst_elapsed (test);
 	if (ret == TRUE) {
 		libst_success (test, NULL);
commit d173615e8150b0c3ffc8cd3eee0fc468eb6c4c97
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Mar 5 00:03:16 2008 +0000

    trivial fix in PkBackendDbus, no functional change

diff --git a/src/pk-backend-dbus.c b/src/pk-backend-dbus.c
index 645fb8a..04f3689 100644
--- a/src/pk-backend-dbus.c
+++ b/src/pk-backend-dbus.c
@@ -1324,9 +1324,9 @@ libst_backend_dbus (LibSelfTest *test)
 	/************************************************************/
 	libst_title (test, "check we actually did something and didn't fork");
 	if (elapsed > 1) {
-		libst_success (test, "time = %lfs", time);
+		libst_success (test, "elapsed = %ims", elapsed);
 	} else {
-		libst_failed (test, "time = %lfs", time);
+		libst_failed (test, "elapsed = %ims", elapsed);
 	}
 
 	/************************************************************/
@@ -1342,9 +1342,9 @@ libst_backend_dbus (LibSelfTest *test)
 	/************************************************************/
 	libst_title (test, "check we forked and didn't block");
 	if (elapsed < 100) {
-		libst_success (test, "time = %lfs", time);
+		libst_success (test, "elapsed = %ims", elapsed);
 	} else {
-		libst_failed (test, "time = %lfs", time);
+		libst_failed (test, "elapsed = %ims", elapsed);
 	}
 
 	/* wait for finished */
commit 106b72e070d73dddcf5f17bb2fcbb3e96c58879b
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Mar 4 23:55:06 2008 +0000

    fix the name of the test backend

diff --git a/data/org.freedesktop.PackageKitTestBackend.service.in b/data/org.freedesktop.PackageKitTestBackend.service.in
index 640d0f1..5275d0f 100644
--- a/data/org.freedesktop.PackageKitTestBackend.service.in
+++ b/data/org.freedesktop.PackageKitTestBackend.service.in
@@ -1,5 +1,5 @@
 [D-BUS Service]
-Name=org.freedesktop.PackageKitDbus
+Name=org.freedesktop.PackageKitTestBackend
 Exec=@servicedir@/PackageKitDbusTest.py
 User=@PK_BACKEND_USER@
 
commit c2d7b7470e92ea4d6fcf51a3303368d1a4680215
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Mar 4 22:46:54 2008 +0000

    post release version bump

diff --git a/configure.ac b/configure.ac
index c61a65f..dd6239c 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 AC_PREREQ(2.52)
 
-AC_INIT(PackageKit, 0.1.9)
+AC_INIT(PackageKit, 0.1.10)
 AC_CONFIG_SRCDIR(src)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 AM_CONFIG_HEADER(config.h)
commit f5b38f51ce73b4707a033eeb0202767acdeed239
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Mar 4 22:42:32 2008 +0000

    release version 0.1.9

diff --git a/NEWS b/NEWS
index 6814a43..49f69e6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,57 @@
+Version 0.1.9
+~~~~~~~~~~~~~
+Released: 2008-03-04
+
+* Backends:
+ - apt2: Add a simple profiler and a test script (Sebastian Heinlein)
+ - apt2: add Refresh, InstallPackage, RemovePackage, UpdateSystem (Sebastian Heinlein)
+ - apt2: Implement SearchDetails using the xapian database (Sebastian Heinlein)
+ - apt2: unlock the backend after reopening the cache (Sebastian Heinlein)
+ - apt2: Adapt new basename filter API change (Sebastian Heinlein)
+ - opkg: Call no percentage updates before the install thread starts (Thomas Wood)
+ - opkg: Make description search case insensitive (Thomas Wood)
+ - opkg: Implement search_group method (Thomas Wood)
+ - opkg: Consolidate search threads into one function and implement description search (Thomas Wood)
+ - opkg: Pass allow_deps and autoremove flags to libopkg (Thomas Wood)
+ - opkg: protect against packages not found in the package hash (Thomas Wood)
+ - yum2: Add an experimental InstallPublicKey method (Robin Norwood)
+ - yum2: Add a timeout on the yum dbus backend (Robin Norwood)
+ - yum2: Add skip_broken flag to update the system even if there are dep errors (Robin Norwood)
+ - yum2: Fix error code when package is not found for install (Robin Norwood)
+ - yum2: Make caching more lazy for certain calls (Robin Norwood)
+ - yum2: Over DBUS, we don't need to use semicolons instead of newlines (Robin Norwood)
+ - yum: Make install and update handle multiple packages (Tim Lauridsen)
+ - zypp: Assign the right group to a package (Stefan Haas)
+ - zypp: Changed backend to use sat::solvables (Stefan Haas)
+ - zypp: fix to build with newer libzyp (4.2.9) (Scott Reeves)
+ - zypp: Minor changes because of changes in the zypp api (Stefan Haas)
+
+* New features:
+ - Add another error constant: cannot-cancel (Richard Hughes)
+ - Add a new configuration option --with-backend-user (Sebastian Heinlein)
+ - Added a new filter 'basename' to the list of allowed filter types and use with GetUpdate (Richard Hughes)
+ - Make the PackageKit actions localised, and generally enable gettext (Richard Hughes)
+ - Add autoremove boolean to the PackageRemove method (Thomas Wood)
+ - Change the daemonBackend to fork to perform actions (Robin Norwood)
+ - Use colour on the terminal to help me debug warnings and errors (Richard Hughes)
+ - Change the daemonBackend to fork to perform actions (Rob Norwood)
+ - Use Python's logging instead of print statements in the daemonBackend (Sebastian Heinlein)
+
+* Bugfixes:
+ - Fix packagekitd startup failure due to NetworkManager (Richard Hughes)
+ - Make the backends use a common interface and path (Richard Hughes)
+ - Clean up dbus config files (Robin Norwood)
+ - Run intltoolize in the autogen.sh script (Thomas Wood)
+ - Make the PkClient gobjects return GError (Richard Hughes)
+ - Keep PolKitContext object up to date when we authorise (Richard Hughes)
+ - Add some icons and vendor_url's to the policykit actions (Richard Hughes)
+ - Remove the artificial 1024 char limit on error_code messages (Richard Hughes)
+ - Add more checks to ensure we can't output data after we called error-code (Richard Hughes)
+ - Initial version of packagekit cron support for headless servers (Richard Hughes)
+ - Don't try to set an error if we cancel an unused transaction (Richard Hughes)
+ - Properly detect NoPercentageUpdates at startup (Richard Hughes)
+ - Fixed possible GError segfault in the client library (Grzegorz Dabrowski)
+
 Version 0.1.8
 ~~~~~~~~~~~~~
 Released: 2008-02-21
diff --git a/docs/html/pk-download.html b/docs/html/pk-download.html
index 84d87a3..77227f6 100644
--- a/docs/html/pk-download.html
+++ b/docs/html/pk-download.html
@@ -57,6 +57,7 @@ Released versions are found on
 <tr><td>0.1.6</td><td></td><td>2008-01-18</td></tr>
 <tr><td>0.1.7</td><td></td><td>2008-02-14</td></tr>
 <tr><td>0.1.8</td><td></td><td>2008-02-21</td></tr>
+<tr><td>0.1.9</td><td></td><td>2008-03-04</td></tr>
 </table>
 
 <h2>Dependencies</h2>



More information about the PackageKit mailing list