Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package PackageKit for openSUSE:Factory checked in at 2026-07-20 09:57:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/PackageKit (Old) and /work/SRC/openSUSE:Factory/.PackageKit.new.24530 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "PackageKit" Mon Jul 20 09:57:17 2026 rev:246 rq:1366371 version:1.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes 2026-05-08 16:42:06.633050621 +0200 +++ /work/SRC/openSUSE:Factory/.PackageKit.new.24530/PackageKit.changes 2026-07-20 09:59:51.445174746 +0200 @@ -1,0 +2,7 @@ +Thu Jul 16 06:24:12 UTC 2026 - Jonathan Kang <[email protected]> + +- Add PackageKit-zypp-respect-libzypp-package-locks.patch: + zypp: respect libzypp package locks + (bsc#1263252, gh#PackageKit/PackageKit/commit/1263252). + +------------------------------------------------------------------- New: ---- PackageKit-zypp-respect-libzypp-package-locks.patch ----------(New B)---------- New: - Add PackageKit-zypp-respect-libzypp-package-locks.patch: zypp: respect libzypp package locks ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PackageKit.spec ++++++ --- /var/tmp/diff_new_pack.2DfXCl/_old 2026-07-20 09:59:52.161198842 +0200 +++ /var/tmp/diff_new_pack.2DfXCl/_new 2026-07-20 09:59:52.165198977 +0200 @@ -44,6 +44,8 @@ Patch1: PackageKit-remove-polkit-rules.patch # PATCH-FIX-OPENSUSE PackageKit-alias-dnf-to-dnf5.patch [email protected] -- Handle replacing dnf with dnf5 Patch2: PackageKit-alias-dnf-to-dnf5.patch +# PATCH-FIX-UPSTREAM PackageKit-zypp-respect-libzypp-package-locks.patch bsc#1263252, gh#PackageKit/PackageKit/commit/1263252 [email protected] -- zypp: respect libzypp package locks +Patch3: PackageKit-zypp-respect-libzypp-package-locks.patch BuildRequires: docbook5-xsl-stylesheets BuildRequires: fdupes ++++++ PackageKit-zypp-respect-libzypp-package-locks.patch ++++++ >From 7de0a1e308ff3887ff0a59b33b31e7d1e14bc814 Mon Sep 17 00:00:00 2001 From: Jonathan Kang <[email protected]> Date: Thu, 16 Jul 2026 09:49:18 +0800 Subject: [PATCH] zypp: respect libzypp package locks Apply libzypp packge locks[1] after building the pool to prevent changes to the set of installed packages on the system. https://bugzilla.suse.com/show_bug.cgi?id=1263252 *[1] https://en.opensuse.org/openSUSE:Libzypp_locks_file --- backends/zypp/pk-backend-zypp.cpp | 60 ++++++++++++++++++------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp index b390d59a8..a3bcdf14e 100644 --- a/backends/zypp/pk-backend-zypp.cpp +++ b/backends/zypp/pk-backend-zypp.cpp @@ -49,6 +49,7 @@ #include <zypp/Digest.h> #include <zypp/KeyRing.h> +#include <zypp/Locks.h> #include <zypp/Package.h> #include <zypp/Patch.h> #include <zypp/PathInfo.h> @@ -793,35 +794,46 @@ zypp_build_pool (ZYpp::Ptr zypp, gboolean include_local) } // we only load repositories once. - if (repos_loaded) - return zypp->pool(); + if (!repos_loaded) { + // Add resolvables from enabled repos + RepoManager manager; + try { + for (RepoManager::RepoConstIterator it = manager.repoBegin(); it != manager.repoEnd(); ++it) { + RepoInfo repo (*it); - // Add resolvables from enabled repos - RepoManager manager; - try { - for (RepoManager::RepoConstIterator it = manager.repoBegin(); it != manager.repoEnd(); ++it) { - RepoInfo repo (*it); + // skip disabled repos + if (repo.enabled () == false) + continue; + // skip not cached repos + if (manager.isCached (repo) == false) { + g_warning ("%s is not cached! Do a refresh", repo.alias ().c_str ()); + continue; + } + //FIXME see above, skip already cached repos + if (sat::Pool::instance().reposFind( repo.alias ()) == Repository::noRepository) + manager.loadFromCache (repo); - // skip disabled repos - if (repo.enabled () == false) - continue; - // skip not cached repos - if (manager.isCached (repo) == false) { - g_warning ("%s is not cached! Do a refresh", repo.alias ().c_str ()); - continue; } - //FIXME see above, skip already cached repos - if (sat::Pool::instance().reposFind( repo.alias ()) == Repository::noRepository) - manager.loadFromCache (repo); + repos_loaded = true; + } catch (const repo::RepoNoAliasException &ex) { + g_error ("Can't figure an alias to look in cache"); + } catch (const repo::RepoNotCachedException &ex) { + g_error ("The repo has to be cached at first: %s", ex.asUserString ().c_str ()); + } catch (const Exception &ex) { + g_error ("TODO: Handle exceptions: %s", ex.asUserString ().c_str ()); + } + } + /* Apply the locks from the libzypp locks file (/etc/zypp/locks) so that + * locked packages are excluded from updates and installs, just like + * zypper does. */ + if (ZConfig::instance ().apply_locks_file ()) { + try { + zypp::Locks::instance ().readAndApply (); + } catch (const Exception &ex) { + g_warning ("Failed to apply the zypp locks file: %s", + ex.asUserString ().c_str ()); } - repos_loaded = true; - } catch (const repo::RepoNoAliasException &ex) { - g_error ("Can't figure an alias to look in cache"); - } catch (const repo::RepoNotCachedException &ex) { - g_error ("The repo has to be cached at first: %s", ex.asUserString ().c_str ()); - } catch (const Exception &ex) { - g_error ("TODO: Handle exceptions: %s", ex.asUserString ().c_str ()); } return zypp->pool (); -- 2.54.0 ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.2DfXCl/_old 2026-07-20 09:59:52.249201804 +0200 +++ /var/tmp/diff_new_pack.2DfXCl/_new 2026-07-20 09:59:52.257202073 +0200 @@ -1,6 +1,6 @@ -mtime: 1777886032 -commit: 5fbbd652651c3c68cb94c82ce937aeb584c74f043f60df4ac9f8a0941d75bf12 +mtime: 1784184127 +commit: 4061c0b3d56a644444b5c393298cc6ab55d9893085ceac792d27ffe522f3e5c4 url: https://src.opensuse.org/GNOME/PackageKit -revision: 5fbbd652651c3c68cb94c82ce937aeb584c74f043f60df4ac9f8a0941d75bf12 +revision: 4061c0b3d56a644444b5c393298cc6ab55d9893085ceac792d27ffe522f3e5c4 projectscmsync: https://src.opensuse.org/GNOME/_ObsPrj ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-07-16 08:42:07.000000000 +0200 @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild
