Hello community, here is the log from the commit of package PackageKit for openSUSE:Factory checked in at 2016-08-22 10:48:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/PackageKit (Old) and /work/SRC/openSUSE:Factory/.PackageKit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "PackageKit" Changes: -------- --- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes 2016-08-16 13:01:18.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.PackageKit.new/PackageKit.changes 2016-08-22 10:48:52.000000000 +0200 @@ -1,0 +2,14 @@ +Fri Aug 12 11:31:11 UTC 2016 - [email protected] + +- Stop Providing/Obsoleting opensuse-codecs-installer, it was + dropped more than 5 years ago. + +------------------------------------------------------------------- +Mon Jul 25 08:37:41 UTC 2016 - [email protected] + +- Add + 0001-zypp-Return-error-if-invalid-package-IDs-are-detecte.patch: + Fix segfaults when detecting invalid package IDs + (gh#hughsie/PackageKit#148). + +------------------------------------------------------------------- New: ---- 0001-zypp-Return-error-if-invalid-package-IDs-are-detecte.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PackageKit.spec ++++++ --- /var/tmp/diff_new_pack.6Lmf2b/_old 2016-08-22 10:48:53.000000000 +0200 +++ /var/tmp/diff_new_pack.6Lmf2b/_new 2016-08-22 10:48:53.000000000 +0200 @@ -41,6 +41,8 @@ Patch6: PackageKit-avoid-endless-loop-on-autoupdate.patch # PATCH-FIX-UPSTREAM PackageKit-annotate-dbus-interface.patch gh#hughsie/PackageKit#147 [email protected] -- Annotate new DBus interface, which is too complex for Qt Patch7: PackageKit-annotate-dbus-interface.patch +# PATCH-FIX-UPSTREAM 0001-zypp-Return-error-if-invalid-package-IDs-are-detecte.patch bsc#981011 gh#hughsie/PackageKit#148 -- Return error if invalid package IDs are detected; fixes segfault in some cases +Patch8: 0001-zypp-Return-error-if-invalid-package-IDs-are-detecte.patch BuildRequires: NetworkManager-devel BuildRequires: automake BuildRequires: fdupes @@ -117,8 +119,6 @@ Requires(postun): update-alternatives Recommends: %{name} = %{version} Supplements: packageand(%{name}:gstreamer-plugins-base) -Provides: opensuse-codecs-installer = 10.3.1 -Obsoletes: opensuse-codecs-installer <= 10.3.1 %description gstreamer-plugin PackageKit is a system designed to make installing and updating @@ -232,6 +232,7 @@ %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 translation-update-upstream %build ++++++ 0001-zypp-Return-error-if-invalid-package-IDs-are-detecte.patch ++++++ >From 90224f3cd99d8f2f4371f7ae9fb8f602e740838d Mon Sep 17 00:00:00 2001 From: Michael Andres <[email protected]> Date: Fri, 22 Jul 2016 09:17:51 +0200 Subject: [PATCH] zypp: Return error if invalid package IDs are detected --- backends/zypp/pk-backend-zypp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp index 49282fb..96a8180 100644 --- a/backends/zypp/pk-backend-zypp.cpp +++ b/backends/zypp/pk-backend-zypp.cpp @@ -2403,6 +2403,12 @@ backend_get_update_detail_thread (PkBackendJob *job, GVariant *params, gpointer for (uint i = 0; package_ids[i]; i++) { sat::Solvable solvable = zypp_get_package_by_id (package_ids[i]); MIL << package_ids[i] << " " << solvable << endl; + if (!solvable) { + // Previously stored package_id no longer matches any solvable. + zypp_backend_finished_error (job, PK_ERROR_ENUM_PACKAGE_NOT_FOUND, + "couldn't find package"); + return; + } Capabilities obs = solvable.obsoletes (); -- 2.1.4
