Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2022-06-01 17:33:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and      /work/SRC/openSUSE:Factory/.PackageKit.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "PackageKit"

Wed Jun  1 17:33:48 2022 rev:226 rq:980018 version:1.2.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes    2022-05-24 
20:31:00.630900324 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1548/PackageKit.changes  
2022-06-01 17:33:53.866686620 +0200
@@ -1,0 +2,6 @@
+Thu May 26 07:25:04 UTC 2022 - Jonathan Kang <songchuan.k...@suse.com>
+
+- Add PackageKit-zypp-locked-packages.patch: zypp: ignore locked
+  packages(gh#hughsie/PackageKit#543, boo#1199895).
+
+-------------------------------------------------------------------

New:
----
  PackageKit-zypp-locked-packages.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ PackageKit.spec ++++++
--- /var/tmp/diff_new_pack.wAUf3v/_old  2022-06-01 17:33:54.630687522 +0200
+++ /var/tmp/diff_new_pack.wAUf3v/_new  2022-06-01 17:33:54.634687527 +0200
@@ -51,7 +51,9 @@
 # PATCH-FIX-OPENSUSE 
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch 
ngomp...@gmail.com -- Band-aid to deal with OBS producing differently named 
appstream repodata files
 Patch3:         
PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch
 # PATCH-FIX-UPSTREAM PackageKit-fix-crash-pre-dbus.patch 
gh#hughsie/PackageKit!436 -- Do not crash when calling pk_dbus_get_uid() before 
D-Bus is  setup
-Patch5:         PackageKit-fix-crash-pre-dbus.patch
+Patch4:         PackageKit-fix-crash-pre-dbus.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-locked-packages.patch 
gh#hughsie/PackageKit#543, boo#1199895 sck...@suse.com -- zypp: ignore locked 
packages
+Patch5:         PackageKit-zypp-locked-packages.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++++++ PackageKit-zypp-locked-packages.patch ++++++
Index: PackageKit-1.2.5/backends/zypp/pk-backend-zypp.cpp
===================================================================
--- PackageKit-1.2.5.orig/backends/zypp/pk-backend-zypp.cpp
+++ PackageKit-1.2.5/backends/zypp/pk-backend-zypp.cpp
@@ -1239,13 +1239,19 @@ zypp_get_package_updates (string repo, s
                resolver->doUpdate ();
        }
 
-       for (; it != e; ++it)
-               if (it->status().isToBeInstalled()) {
+       for (; it != e; ++it) {
+        if (it->status().isLocked()) {
+            // We pretend locked packages are not upgradable at all since
+            // we can't represent the concept of holds in PackageKit.
+            // https://github.com/PackageKit/PackageKit/issues/325
+            continue;
+        } else if (it->status().isToBeInstalled()) {
                        ui::Selectable::constPtr s =
                                ui::Selectable::get((*it)->kind(), 
(*it)->name());
                        if (s->hasInstalledObj())
                                pks.insert(*it);
                }
+    }
 
        if (is_tumbleweed ()) {
                resolver->setUpgradeMode (FALSE);

Reply via email to