Accepting request 724424 from home:JonathanKang:branches:GNOME:Factory
- Add PackageKit-zypp-fix-what-provides-newest-filter.patch: zypp: Add support for newest filter in what-provides(bsc#984865, gh#hughsie/PackageKit#335). OBS-URL: https://build.opensuse.org/request/show/724424 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/PackageKit?expand=0&rev=355
This commit is contained in:
parent
e326744659
commit
453272c645
24
PackageKit-zypp-fix-what-provides-newest-filter.patch
Normal file
24
PackageKit-zypp-fix-what-provides-newest-filter.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: PackageKit-1.1.12/backends/zypp/pk-backend-zypp.cpp
|
||||
===================================================================
|
||||
--- PackageKit-1.1.12.orig/backends/zypp/pk-backend-zypp.cpp
|
||||
+++ PackageKit-1.1.12/backends/zypp/pk-backend-zypp.cpp
|
||||
@@ -1113,6 +1113,19 @@ zypp_filter_solvable (PkBitfield filters
|
||||
return TRUE;
|
||||
if (i == PK_FILTER_ENUM_NOT_DOWNLOADED && zypp_package_is_cached (item))
|
||||
return TRUE;
|
||||
+ if (i == PK_FILTER_ENUM_NEWEST) {
|
||||
+ if (item.isSystem ()) {
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+ else {
|
||||
+ ui::Selectable::Ptr sel = ui::Selectable::get (item);
|
||||
+ const PoolItem & newest (sel->highestAvailableVersionObj ());
|
||||
+
|
||||
+ if (newest && zypp::Edition::compare (newest.edition (), item.edition ()))
|
||||
+ return TRUE;
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+ }
|
||||
|
||||
// FIXME: add more enums - cf. libzif logic and pk-enum.h
|
||||
// PK_FILTER_ENUM_SUPPORTED,
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 19 01:10:01 UTC 2019 - Jonathan Kang <sckang@suse.com>
|
||||
|
||||
- Add PackageKit-zypp-fix-what-provides-newest-filter.patch:
|
||||
zypp: Add support for newest filter in what-provides(bsc#984865,
|
||||
gh#hughsie/PackageKit#335).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 14 01:32:01 UTC 2019 - Jonathan Kang <sckang@suse.com>
|
||||
|
||||
|
@ -53,6 +53,8 @@ Patch5: PackageKit-remove-polkit-rules.patch
|
||||
Patch6: zypp-perform-actions-disallowed-by-update-in-upgrade-mode.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-newest-filter.patch bsc#1137019 gh#hughsie/PackageKit#329 sckang@suse.com -- zypp: Emit installed package for newest filter
|
||||
Patch7: PackageKit-zypp-fix-newest-filter.patch
|
||||
# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-what-provides-newest-filter.patch bsc#984865, gh#hughsie/PackageKit#335 sckang@suse.com -- zypp: Add support for newest filter in what-provides
|
||||
Patch8: PackageKit-zypp-fix-what-provides-newest-filter.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gobject-introspection-devel
|
||||
@ -244,6 +246,7 @@ This package provides the upstream default configuration for PackageKit.
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
translation-update-upstream
|
||||
|
||||
%build
|
||||
|
Loading…
Reference in New Issue
Block a user