commit PackageKit for openSUSE:Factory
Hello community, here is the log from the commit of package PackageKit for openSUSE:Factory checked in at Wed Mar 31 19:34:54 CEST 2010. -------- --- PackageKit/PackageKit.changes 2010-02-10 14:35:48.000000000 +0100 +++ /mounts/work_src_done/STABLE/PackageKit/PackageKit.changes 2010-03-31 01:51:15.000000000 +0200 @@ -1,0 +2,305 @@ +Wed Mar 31 01:45:31 CEST 2010 - vuntz@opensuse.org + +- Update to version 0.6.3: + + Notes: + - Two important bugfixes, one that causes high CPU load in + client programs, and one that fixes an odd crash in the + libnm-glib threading code. + + Libraries: + - glib: Add pk_package_sack_filter() and + pk_package_sack_remove_by_filter() + - glib: Do not generate a PkPackageSack from the package array, + instead add packages as they appear + - glib: Ensure we remove CLEANUP and FINISHED from the package + sack before we run the simulate callback + - glib: Fix up a critical warning when installing a file, not a + package + - qt: Fixed UpdateState enum + - python: Fixed packagekit.client.search_file() + + New Features: + - Add a configure option UseThreadsInBackend so we can more + easily debug packagekitd + - Break internal python API by supplying a list of filters to + the backend, not a delimited list + - Add a boolean configure variable 'SimilarNameSearch' to allow + skipping swizzle testing. Fixes fdo#27246 + - Show PkPackage changes in pkmon for easier debugging + + Bugfixes: + - Add some missing G_BEGIN_DECLS and G_END_DECLS to fix + including from C++ + - Be more careful when testing the value of waitpid() to try to + debug a problem where the backend appears to exit + - Do not crash libdbus when libnm-glib uses it's own context + - Do not finish the transaction with success when the spawned + backend does a non-finished exit + - Do not show installed packages when we choose packages to + download + - Ensure the Package(finished) signal is always sent during the + transaction. Fixes rh#522628 + - Fix a nasty segfault if the library check-restart code tries + to emit a restart-required + - Fix Kubuntu support for upgrade + - Fix reporting distribution upgrades by setting the correct + property in two places + - Never exit the daemon, even when we hit a race in PkSpawn - + just cleanup, warn, and continue + - Do not call finished before exiting the script due to an + error + - When realpath fails, do not silently fail but return with an + error + + Non-zypp backends updates. + + Updated translations. +- Drop PackageKit-fix-pk-qt.patch: fixed upstream. + +------------------------------------------------------------------- +Fri Mar 26 15:15:59 CET 2010 - vuntz@opensuse.org + +- Add PackageKit-fix-pk-qt.patch, taken from git, to make + libpackagekit-qt work correctly. + +------------------------------------------------------------------- +Fri Mar 26 13:14:34 CET 2010 - vuntz@opensuse.org + +- Build against mozilla-xulrunner192-devel on openSUSE > 11.2. + +------------------------------------------------------------------- +Tue Mar 23 22:08:13 CET 2010 - vuntz@opensuse.org + +- Update to version 0.6.2: + + Notes: + - We broke PackageKit-Qt API in a big way this release. You'll + need a new KPackageKit if you're using KDE. + - There is a _tiny_ API break in PackageKit-glib2 which means + most apps just need a recompile. + + Libraries: + - PackageKit-glib2: Add pk_control_suggest_daemon_quit() + - PackageKit-Qt: Add a Last[enum-type] entry to each type + - PackageKit-Qt: Added more constness to the lib + - PackageKit-Qt: Drop QObject for Package + - PackageKit-Qt: Fix filtersToString and make enumToString more + robust + - PackageKit-Qt: Fix up a typo that prevents compiling programs + that use -pedantic-errors + - PackageKit-Qt: Fully automatize the proxy generation + - PackageKit-Qt: Moved the package enums to Enum class + - PackageKit-Qt: Port tests to current API + - PackageKit-Qt: Port the tests to the new Enum class + - PackageKit-Qt: Switch from QDbusReply to QDBusPendingReply + + New Features: + - Add a new library function: pk_package_sack_filter_by_info() + - Add a pk_backend_set_speed() helper function + - Added autoremove to simulateRemovePackage + - Add the eula-required python method helper + - Change the python helpers to get sent an array of values, not + a delimited string + - Define a new error code for when the user declines the + simulation + - Removed deprecated SetLocale + - Show messages in the pkmon output when the task has completed + + Bugfixes: + - Add the environment variable accepted_eulas to the spawned + processes + - Add the polkit backend library in LIBADD, not LDFLAGS. Fixes + fdo#26373 + - Do not run the transaction with only_trusted if the + simulation inferred that any packages were unsigned + - Ensure that a malicious user can't make the backend exit by + injecting a bogus EULA call into the transaction + - Fix a logic problem where the PkSpawn and PkBackend instances + would race and sometimes issue a pk_backend_finished() when + the dispatcher instance was being changed + - Initialize relevant GError's in the daemon to NULL + - Install the introspection data to the correct location + - Update the list of free licences from the Fedora wiki + + Backends: + - zypp: add more features to repo_set_data + - zypp: change policy to download first + - Non-zypp backends updates. + + Updated translations. +- Add gobject-introspection-devel BuildRequires. +- Rename libpackagekit-glib2-13 to libpackagekit-glib2-14 and + libpackagekit-qt13 to libpackagekit-qt14 after soversion change. +- Add workaround to install pm-utils files in libexecdir, since + this is how pm-utils is configured in openSUSE. + +------------------------------------------------------------------- +Fri Mar 19 13:17:02 CET 2010 - vuntz@opensuse.org + +- Add branding infrastructure, and create a + PackageKit-branding-upstream. There is some vendor-specific + settings that really belongs to branding packages, and we can + also change the default configuration there. Fix bnc#471377. +- Drop PackageKit_release.patch: this will be done in the branding + package. + +------------------------------------------------------------------- +Thu Mar 18 15:37:48 CET 2010 - vuntz@opensuse.org + +- Update to version 0.6.1: + + Backends: + - zypp: Add more features to repo_set_data + - zypp: Partial support of multiple values for search params + - zypp: Work with packagekit-glib2 + - Non-zypp backends updates. + + New Features: + - Add Kubuntu support for upgrade + - Add support for the 'interactive' hint in the daemon, and + also sent it to the backend + - Add a new message enum 'repo-for-developers-only' for repos + that should not be used by users + - Add sync versions of the PkPackageSack functions + - Enable initial introspection support in PackageKit-glib2 + - Sort the packages by name in all pkcon results + + Bugfixes: + - Ensure we enter SETUP before we run the pre-transaction + checks + - Add a parent object to all the source objects to track the + source role and transacton id + - Ensure we set an error when the transaction is cancelled + - Ensure PkProgress sends ::notify signals when properties + change + - When adopting a transaction ensure we set the role on the + PkResults object + - Show the translated role and status when using pkgenpack + - Ensure that pkgenpack generates filenames without ';' + embedded in them + - If the user uses 'pkcon install dave.rpm' then give a useful + error message + - Fixed packagekit.client.install_packages() in Python bindings + - Cache autoremove too in transaction_remove_packages + + Updated translations. +- Update to version 0.6.0: + + New Features: + - Remove the deprecated DBus methods from the daemon + - Break internal and external API to support OR queries + - Add a new error enum 'failed-due-to-running-process' for + future code + - Add a new config file entry, NoUpdateProcessList that + specifies processes that should not be updated when running + - glib: Remove the deprecated glib library + - packagekit-qt: Removed deprecated methods + - packagekit-qt: Added searchNames, searchFiles and searchGroups + + Bugfixes: + - cnf: Ensure we send error messages to stderr, not stdout. + Fixes rh#545220 + - Fix a crash where the extra library check file callbacks had + the wrong signature + - Allow the inhibit call to go through even if cancel is not + implemented + - packagekit-qt: Improved and fixed transaction handling so + does not crash kded module anymore + - packagekit-qt: Fixed the naming of the conviniece functions + to match the same function + + Non-zypp backends updates. + + Updated translations. +- Update to version 0.5.5: + + New Features: + - Add a --plain option to pkcon to better support not-running ++++ 108 more lines (skipped) ++++ between PackageKit/PackageKit.changes ++++ and /mounts/work_src_done/STABLE/PackageKit/PackageKit.changes calling whatdependson for head-i586 Old: ---- PackageKit-0.5.1.tar.bz2 PackageKit-BNC383261-suggest-daemon-quit.patch PackageKit-BNC543595.patch PackageKit-force-pm-utils.patch PackageKit-webyast.patch PackageKit_release.patch New: ---- PackageKit-0.6.3.tar.bz2 PackageKit-BNC559802-zypp-count-patch-size.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PackageKit.spec ++++++ --- /var/tmp/diff_new_pack.SOqAEc/_old 2010-03-31 19:33:17.000000000 +0200 +++ /var/tmp/diff_new_pack.SOqAEc/_new 2010-03-31 19:33:17.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package PackageKit (Version 0.5.1) +# spec file for package PackageKit (Version 0.6.3) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -16,21 +16,26 @@ # +%if 0%{suse_version} > 1120 +%define xulrunner_version 192 +%else %if 0%{suse_version} > 1110 %define xulrunner_version 191 %else %define xulrunner_version 190 %endif +%endif Name: PackageKit -Version: 0.5.1 -Release: 5 +Version: 0.6.3 +Release: 1 License: GPLv2+ BuildRequires: NetworkManager-devel BuildRequires: dbus-1-glib-devel BuildRequires: docbook-utils BuildRequires: fdupes BuildRequires: gcc-c++ +BuildRequires: gobject-introspection-devel BuildRequires: gstreamer-0_10-devel BuildRequires: gstreamer-0_10-plugins-base-devel BuildRequires: gtk-doc @@ -38,9 +43,11 @@ BuildRequires: intltool BuildRequires: libarchive-devel BuildRequires: libcppunit-devel +BuildRequires: libgudev-1_0-devel BuildRequires: libqt4-devel BuildRequires: libzypp-devel BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel +BuildRequires: pm-utils BuildRequires: polkit-devel BuildRequires: python-devel BuildRequires: sqlite-devel @@ -48,17 +55,12 @@ Summary: Simple software installation management software Url: http://packagekit.org/ Source: %{name}-%{version}.tar.bz2 -Patch: PackageKit_release.patch -# PATCH-FEATURE-UPSTREAM PackageKit-BNC383261-suggest-daemon-quit.patch bnc383261 -Patch1: PackageKit-BNC383261-suggest-daemon-quit.patch # PATCH-FIX-UPSTREAM PackageKit-libzypp6.patch fdo#20366 Patch2: PackageKit-libzypp6.patch -# PATCH-FIX-OPENSUSE PackageKit-force-pm-utils.patch dominique-obs@leuenberger.net -- force detection of pm-utils to true (we have a way too old pm-utils package) -Patch3: PackageKit-force-pm-utils.patch -# PATCH-FIX-UPSTREAM PackageKit-BNC543595.patch sreeves@novell.com -- install local files -Patch4: PackageKit-BNC543595.patch -Patch5: PackageKit-webyast.patch +# PATCH-FIX-UPSTREAM PackageKit-BNC559802-zypp-count-patch-size.patch glin@novell.com -- calculate the download size of the patch +Patch6: PackageKit-BNC559802-zypp-count-patch-size.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: %{name}-branding Requires: %{name}-lang = %{version} PreReq: python-base = %{py_ver} %if %suse_version <= 1110 @@ -74,7 +76,7 @@ %package -n ruck License: GPLv2+ -Summary: Ruck is a rug-like interface for PackageKit +Summary: PackageKit interface similar to rug Requires: %{name} = %{version} Group: System/Daemons @@ -86,7 +88,7 @@ License: GPLv2+ Summary: Needed include files and libraries for development Requires: %{name} = %{version} -Requires: glib2-devel libpackagekit-glib12-devel NetworkManager-devel sqlite3-devel +Requires: glib2-devel libpackagekit-glib2-devel NetworkManager-devel sqlite3-devel Group: System/Daemons %if 0%{?suse_version} >= 1120 BuildArch: noarch @@ -97,56 +99,58 @@ configuration files and development tools (with manual pages) needed to compile and link applications using PackageKit. -%package -n libpackagekit-glib12 +%package -n libpackagekit-glib2-14 License: GPLv2+ Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} -%description -n libpackagekit-glib12 +%description -n libpackagekit-glib2-14 PackageKit is a system designed to make installing and updating software on your computer easier. The primary design goal is to unify all the software graphical tools used in different distributions, and use some of the latest technology like PolicyKit to make the process suck less. -%package -n libpackagekit-glib12-devel +%package -n libpackagekit-glib2-devel License: GPLv2+ Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} -Requires: libpackagekit-glib12 = %{version} +Requires: libpackagekit-glib2-14 = %{version} Requires: glib2-devel NetworkManager-devel sqlite3-devel -%description -n libpackagekit-glib12-devel +%description -n libpackagekit-glib2-devel PackageKit is a system designed to make installing and updating software on your computer easier. The primary design goal is to unify all the software graphical tools used in different distributions, and use some of the latest technology like PolicyKit to make the process suck less. -%package -n libpackagekit-qt12 +%package -n libpackagekit-qt14 License: GPLv2+ Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} -%description -n libpackagekit-qt12 +%description -n libpackagekit-qt14 PackageKit is a system designed to make installing and updating software on your computer easier. The primary design goal is to unify all the software graphical tools used in different distributions, and use some of the latest technology like PolicyKit to make the process suck less. -%package -n libpackagekit-qt12-devel +%package -n libpackagekit-qt-devel License: GPLv2+ Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} -Requires: libpackagekit-qt12 = %{version} +Requires: libpackagekit-qt14 = %{version} Requires: libqt4-devel +# Old name of the package; we can't provide it since the ABI has changed +Obsoletes: libpackagekit-qt12-devel <= 0.5.4 -%description -n libpackagekit-qt12-devel +%description -n libpackagekit-qt-devel PackageKit is a system designed to make installing and updating software on your computer easier. The primary design goal is to unify all the software graphical tools used in different distributions, and @@ -169,20 +173,26 @@ use some of the latest technology like PolicyKit to make the process suck less. +%package branding-upstream +License: GPLv2+ +Summary: Upstream branding of PackageKit +Group: System/Daemons +Supplements: packageand(%{name}:branding-upstream) +Provides: %{name}-branding = %{version} +Conflicts: otherproviders(%{name}-branding) +#BRAND: Provide configuration files - +#BRAND: /etc/PackageKit/* + +%description branding-upstream +This package provides upstream Look and Feel for PackageKit. + %lang_package %prep %setup -q -%patch -p0 -%patch1 -p1 %patch2 -%patch3 -p1 -%patch4 -p1 -%patch5 -p0 +%patch6 -p1 %build -# uncomment out the following line if autotools should be run again (i.e., -# one of the patches has modified configure.in/ac or a Makefile.am). -autoreconf -f -i %configure \ --disable-static \ --enable-zypp \ @@ -196,37 +206,40 @@ %makeinstall mv %{buildroot}%{_sysconfdir}/bash_completion.d/pk-completion.{ba,}sh find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} + +# the pm-utils package in openSUSE uses libexecdir and not libdir +%if "%{_libdir}" != "%{_libexecdir}" +test ! -e %{buildroot}%{_libexecdir}/pm-utils +mv %{buildroot}%{_libdir}/pm-utils %{buildroot}%{_libexecdir}/pm-utils +%endif %find_lang %{name} %fdupes $RPM_BUILD_ROOT %clean rm -rf "$RPM_BUILD_ROOT" -%post -n libpackagekit-glib12 -p /sbin/ldconfig +%post -n libpackagekit-glib2-14 -p /sbin/ldconfig -%post -n libpackagekit-qt12 -p /sbin/ldconfig +%post -n libpackagekit-qt14 -p /sbin/ldconfig -%postun -n libpackagekit-glib12 -p /sbin/ldconfig +%postun -n libpackagekit-glib2-14 -p /sbin/ldconfig -%postun -n libpackagekit-qt12 -p /sbin/ldconfig +%postun -n libpackagekit-qt14 -p /sbin/ldconfig %files lang -f %{name}.lang %files %defattr(-,root,root) +%doc AUTHORS ChangeLog COPYING HACKING NEWS README %dir %{_sysconfdir}/PackageKit %dir %{_datadir}/PackageKit %dir %{_datadir}/PackageKit/helpers %dir %{_datadir}/PackageKit/helpers/test_spawn %dir %{_libdir}/packagekit-backend %dir %{python_sitelib}/packagekit -%dir %{_libdir}/pm-utils -%dir %{_libdir}/pm-utils/sleep.d +%dir %{_libexecdir}/pm-utils +%dir %{_libexecdir}/pm-utils/sleep.d %dir /var/lib/PackageKit %{_sysconfdir}/bash_completion.d/pk-completion.sh -%{_sysconfdir}/PackageKit/PackageKit.conf -%{_sysconfdir}/PackageKit/Vendor.conf -%{_sysconfdir}/PackageKit/CommandNotFound.conf %{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf %{_sysconfdir}/profile.d/PackageKit.sh %{_bindir}/packagekit-bugreport.sh @@ -234,8 +247,8 @@ %{_bindir}/pkcon %{_bindir}/pkmon %{_bindir}/pkgenpack -%{_libdir}/pm-utils/sleep.d/95packagekit %{_libdir}/packagekit-backend/*.so +%{_libexecdir}/pm-utils/sleep.d/95packagekit %{_libexecdir}/pk-command-not-found %{_libexecdir}/pk-gstreamer-install %{_libdir}/gtk-2.0/modules/* @@ -243,6 +256,7 @@ %{_libdir}/polkit-1/extensions/libpackagekit-action-lookup.so %{python_sitelib}/packagekit/* %{_sbindir}/packagekitd +%{_sbindir}/pk-device-rebind %{_datadir}/mime/packages/packagekit-*.xml %{_datadir}/PackageKit/helpers/test_spawn/search-name.sh %{_datadir}/PackageKit/pk-upgrade-distro.sh @@ -269,23 +283,24 @@ %dir %{_includedir}/PackageKit/backend %{_includedir}/PackageKit/backend/pk*.h -%files -n libpackagekit-glib12 +%files -n libpackagekit-glib2-14 %defattr(-,root,root) -%{_libdir}/libpackagekit-glib.so.* +%{_datadir}/gir-1.0/PackageKitGlib-1.0.gir +%{_libdir}/libpackagekit-glib2.so.* +%{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib -%files -n libpackagekit-glib12-devel +%files -n libpackagekit-glib2-devel %defattr(-,root,root) -%{_libdir}/libpackagekit-glib.so -%{_libdir}/pkgconfig/packagekit-glib.pc +%{_libdir}/libpackagekit-glib2.so +%{_libdir}/pkgconfig/packagekit-glib2.pc %dir %{_includedir}/PackageKit -%dir %{_includedir}/PackageKit/packagekit-glib -%{_includedir}/PackageKit/packagekit-glib/*.h +%{_includedir}/PackageKit/packagekit-glib2/ -%files -n libpackagekit-qt12 +%files -n libpackagekit-qt14 %defattr(-,root,root) %{_libdir}/libpackagekit-qt.so.* -%files -n libpackagekit-qt12-devel +%files -n libpackagekit-qt-devel %defattr(-,root,root) %{_libdir}/libpackagekit-qt.so %{_libdir}/pkgconfig/packagekit-qt.pc @@ -295,4 +310,11 @@ %dir %{_datadir}/cmake %{_datadir}/cmake/Modules/* +%files branding-upstream +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/PackageKit/CommandNotFound.conf +%config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf +# This file should not be touched by users/admins, so we can replace it +%{_sysconfdir}/PackageKit/Vendor.conf + %changelog ++++++ PackageKit-0.5.1.tar.bz2 -> PackageKit-0.6.3.tar.bz2 ++++++ PackageKit/PackageKit-0.5.1.tar.bz2 /mounts/work_src_done/STABLE/PackageKit/PackageKit-0.6.3.tar.bz2 differ: char 11, line 1 ++++++ PackageKit-BNC559802-zypp-count-patch-size.patch ++++++
From 33c87a7abbb1dbc1320bc652ace6fdf8ca702303 Mon Sep 17 00:00:00 2001 From: Gary Lin <glin@novell.com> Date: Wed, 17 Mar 2010 16:48:14 +0800 Subject: [PATCH] [ZYPP] Count the download size of a patch
Calculate the download size of a patch while zypp sends out the package details. Signed-off-by: Gary Lin <glin@novell.com> --- backends/zypp/pk-backend-zypp.cpp | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp index a6b00b3..6a2649a 100644 --- a/backends/zypp/pk-backend-zypp.cpp +++ b/backends/zypp/pk-backend-zypp.cpp @@ -515,6 +515,23 @@ backend_get_details_thread (PkBackend *backend) rpmHeader->tag_url (). c_str (), // const gchar *url (gulong)rpmHeader->tag_archivesize ()); // gulong size + } else if (package.kind() == zypp::ResKind::patch){ + /* Calculate the download size of the patch */ + zypp::PoolItem item = zypp::ResPool::instance ().find (package); + zypp::Patch::constPtr patch = zypp::asKind<zypp::Patch>(item); + zypp::sat::SolvableSet content = patch->contents (); + int total_downloadsize = 0; + for (zypp::sat::SolvableSet::const_iterator it = content.begin (); it != content.end (); it++) { + total_downloadsize += it->lookupNumAttribute (zypp::sat::SolvAttr::downloadsize); + } + + pk_backend_details (backend, + package_ids[i], + package.lookupStrAttribute (zypp::sat::SolvAttr::license).c_str (), //pkg->license ().c_str (), + group, + package.lookupStrAttribute (zypp::sat::SolvAttr::description).c_str (), //pkg->description ().c_str (), + "TODO", //pkg->url ().c_str (), + ((gulong)total_downloadsize * 1024)); } else { pk_backend_details (backend, package_ids[i], -- 1.6.0.2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de