forked from pool/PackageKit
Dominique Leuenberger
bdf90fdd08
- Update to version 1.2.8: + Libraries: - offline-updates: . Make package update list deduplication more efficient. . Add only one entry per package to 'offline-update-competed' file. - PkClient: Replace the GSimpleAsyncResult with the GTask API. - pk-client: . Fix use-before-set of PkProgress on cancellation. . Move cancellable disconnect to dispose. . Rework refcounting for PkClientState. + Backends: Changes to apt, dnf, PiSi and BSD backends. - Changes from version 1.2.7: + New Features: - pkclient: Add an option to count download size with dependencies. - pk-transaction: Add support for getting the RemainingTime property. + Backends: - zypp: Fix ambiguous reference to 'filesystem' class. - Changes to dnf, apt, alpm backends. - Changes from version 1.2.6: + New Features: - Expose transaction sender as read-only property on the bus. - pkmon: Display transaction sender binary name in log. - pk-transaction: Add Packages signal. - pk-transaction: Combine some D-Bus PropertiesChanged signal emissions. - pk-transaction: Add UpdateDetails signal. + Backends: - zypp: . implement upgrade-system method. . Clean up trailing whitespaces. . Avoid statuReset() on locked packages. . restore pool status after simulating an update. . Disable upgrade-system support in SLE. . build the pool before calling is_tumbleweed(). . update libzypp dependency version. . Don't refresh repos before searching. . Check if packages are locked before removing. . add repository data in package id. . Remove trailing whitespace. + Changes to alpm, aptcc, apt, and nix backends. - Rebase patches: + PackageKit-dnf-Add-support-for-AppStream-repodata-basenames-use.patch + PackageKit-dynamic-export.patch + PackageKit-zypp-disable-upgrade-system-in-sle.patch - Drop upstream fixed patches: + PackageKit-zypp-add-repo-in-packageid.patch + PackageKit-zypp-add-upgrade-system.patch + PackageKit-zypp-avoid-statuReset.patch + PackageKit-zypp-dont-refresh-before-searching.patch + PackageKit-zypp-dont-remove-locked-packages.patch + PackageKit-zypp-fix-ambiguous-filesystem-reference.patch + PackageKit-zypp-fix-is-tumbleweed-check.patch + PackageKit-zypp-restore-pool-status-after-simulating-update.patch + PackageKit-zypp-update-libzypp-dependency-version.patch OBS-URL: https://build.opensuse.org/request/show/1129648 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/PackageKit?expand=0&rev=448
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 01ae2ceee2688b308553b0ed0c5f9c1b6f27ad78 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Kang <jonathankang@gnome.org>
|
|
Date: Wed, 27 Jul 2022 17:15:31 +0800
|
|
Subject: [PATCH] zypp: Disable upgrade-system support in SLE
|
|
|
|
---
|
|
backends/zypp/pk-backend-zypp.cpp | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
|
|
Index: PackageKit-1.2.8/backends/zypp/pk-backend-zypp.cpp
|
|
===================================================================
|
|
--- PackageKit-1.2.8.orig/backends/zypp/pk-backend-zypp.cpp
|
|
+++ PackageKit-1.2.8/backends/zypp/pk-backend-zypp.cpp
|
|
@@ -3572,6 +3572,16 @@ pk_backend_upgrade_system_thread (PkBack
|
|
return;
|
|
}
|
|
|
|
+ release_name = pk_get_distro_name (&error);
|
|
+ if (release_name == NULL)
|
|
+ g_error ("Failed to parse os-release: %s", error->message);
|
|
+ if (g_str_has_prefix (release_name, "SLE")) {
|
|
+ pk_backend_job_error_code (job, PK_ERROR_ENUM_NOT_SUPPORTED,
|
|
+ "upgrade-system is not supported in SLE.");
|
|
+
|
|
+ return;
|
|
+ }
|
|
+
|
|
ResPool pool = zypp_build_pool (zypp, TRUE);
|
|
PkRestartEnum restart = PK_RESTART_ENUM_NONE;
|
|
PoolStatusSaver saver;
|