New upstream release

- This is the first release that allows transactions to run in parallel
- The zif backend can run in parallel by default, the yum backend still
  runs each transaction one at a time
- Save the transaction flags when removing packages
- Fix a python backtrace when removing a package
- Add GStreamer 1.0 support to the PackageKit plugin
- Add WritePreparedUpdates config item for admins
This commit is contained in:
Richard Hughes 2012-08-06 16:16:15 +01:00
parent d089707204
commit 50ee91eca2
4 changed files with 14 additions and 43 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ PackageKit-0.6.7.tar.bz2
/PackageKit-0.7.4.tar.xz
/PackageKit-0.8.1.tar.xz
/PackageKit-0.8.2.tar.xz
/PackageKit-0.8.3.tar.xz

View File

@ -1,36 +0,0 @@
diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py
index 0748264..f5216ec 100755
--- a/backends/yum/yumBackend.py
+++ b/backends/yum/yumBackend.py
@@ -3254,7 +3254,7 @@ class DownloadCallback(BaseMeter):
if name:
pkg = self._getPackage(name)
if pkg:
- self.base.item_progress(self.base._pkg_to_id(pkg), val)
+ self.base.item_progress(self.base._pkg_to_id(pkg), STATUS_DOWNLOAD, val)
# package finished
if val == 100 and name:
@@ -3312,16 +3312,17 @@ class PackageKitCallback(RPMBaseCallback):
self.base.message(MESSAGE_BACKEND_ERROR, "The constant '%s' was unknown, please report. details: %s" % (action, _to_unicode(e)))
# set item percentage
- #if package and te_total > 0:
- # val = (te_current*100L)/te_total
- # if self.curpkg:
- # self.base.item_progress(self.base._pkg_to_id(self.curpkg), val)
+ if package and te_total > 0:
+ val = (te_current*100L) / te_total
+ if self.curpkg:
+ self.base.item_progress(self.base._pkg_to_id(self.curpkg), STATUS_INSTALL, val)
# find out the offset
pct_start = StatusPercentageMap[STATUS_INSTALL]
# do percentage
- if ts_total > 0:
+ if ts_total > 0 and te_total > 0:
+ val = (te_current * 100L) / te_total
div = (100 - pct_start) / ts_total
pct = div * (ts_current - 1) + pct_start + ((div / 100.0) * val)
self.base.percentage(pct)

View File

@ -2,8 +2,8 @@
Summary: Package management service
Name: PackageKit
Version: 0.8.2
Release: 3%{?dist}
Version: 0.8.3
Release: 1%{?dist}
License: GPLv2+ and LGPLv2+
URL: http://www.packagekit.org
Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
@ -17,9 +17,6 @@ Patch1: PackageKit-0.4.4-Fedora-turn-off-time.conf.patch
# Upstreamable? allow use of xulrunner2 for browser-plugin support
Patch4: PackageKit-0.7.4-xulrunner2.patch
# Backported from master
Patch9: PackageKit-master.patch
Requires: %{name}-glib%{?_isa} = %{version}-%{release}
Requires: PackageKit-backend
Requires: shared-mime-info
@ -258,7 +255,6 @@ user to restart the computer or remove and re-insert the device.
%patch0 -p1 -b .fedora
%patch1 -p1 -b .no-time
%patch4 -p1 -b .xulrunner2
%patch9 -p1 -b .master
NOCONFIGURE=1 ./autogen.sh
%build
@ -471,6 +467,16 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%{_libdir}/pkgconfig/packagekit-plugin.pc
%changelog
* Mon Aug 06 2012 Richard Hughes <rhughes@redhat.com> - 0.8.3-1
- New upstream release
- This is the first release that allows transactions to run in parallel
- The zif backend can run in parallel by default, the yum backend still
runs each transaction one at a time
- Save the transaction flags when removing packages
- Fix a python backtrace when removing a package
- Add GStreamer 1.0 support to the PackageKit plugin
- Add WritePreparedUpdates config item for admins
* Tue Jul 24 2012 Richard Hughes <rhughes@redhat.com> - 0.8.2-3
- Fix several reported problems with the offline-update funtionality.

View File

@ -1 +1 @@
7ba2b1eb571daac0890f45da79f7e377 PackageKit-0.8.2.tar.xz
53210d9a54d3c9044e4c6edc16c99bd4 PackageKit-0.8.3.tar.xz