public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/plasma-discover] f44: Merge branch 'rawhide' into f45
@ 2026-10-30 14:26 Steve Cossette
0 siblings, 0 replies; only message in thread
From: Steve Cossette @ 2026-10-30 14:26 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/plasma-discover
Branch : f44
Commit : b788bc525442867721814251730f57093b8d4cb7
Author : Steve Cossette <steve@ninjasinpajamas.ca>
Date : 2026-10-22T20:39:16-04:00
Stats : +97/-4 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/plasma-discover/c/b788bc525442867721814251730f57093b8d4cb7?branch=f44
Log:
Merge branch 'rawhide' into f45
---
diff --git a/.gitignore b/.gitignore
index d467073..3d6b619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,7 @@
/discover-6.7.3.tar.xz.sig
/discover-6.7.4.tar.xz.sig
/discover-6.7.5.tar.xz.sig
+/discover-6.7.90.tar.xz.sig
+/discover-6.7.91.tar.xz.sig
+/discover-6.8.0.tar.xz.sig
+/discover-6.8.1.tar.xz.sig
diff --git a/plasma-discover.spec b/plasma-discover.spec
index 51cd048..efbfd4e 100644
--- a/plasma-discover.spec
+++ b/plasma-discover.spec
@@ -8,8 +8,8 @@
Name: plasma-discover
Summary: KDE and Plasma resources management GUI
-Version: 6.7.5
-Release: 2%{?dist}
+Version: 6.8.1
+Release: 1%{?dist}
License: BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0-only AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only)
URL: https://invent.kde.org/plasma/discover
@@ -238,7 +238,9 @@ cat kcm_updates.lang plasma-discover.lang | sort | uniq -u > discover.lang
appstream-util validate-relax --nonet %{buildroot}%{_kf6_metainfodir}/org.kde.discover.appdata.xml
appstream-util validate-relax --nonet %{buildroot}%{_kf6_metainfodir}/org.kde.discover.flatpak.appdata.xml
appstream-util validate-relax --nonet %{buildroot}%{_kf6_metainfodir}/org.kde.discover.packagekit.appdata.xml
+appstream-util validate-relax --nonet %{buildroot}%{_kf6_metainfodir}/org.kde.discover.appstreampreview.metainfo.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.desktop
+desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.appstreampreview.desktop
%files -f discover.lang
@@ -254,11 +256,14 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.desk
%{_libexecdir}/discover/
%endif
%{_kf6_datadir}/applications/kcm_updates.desktop
+%{_kf6_datadir}/config.kcfg/discover*.kcfg
+%{_kf6_metainfodir}/org.kde.discover.appstreampreview.metainfo.xml
%files notifier -f plasma-discover-notifier.lang
%{_datadir}/knotifications6/discoverabstractnotifier.notifyrc
%{_sysconfdir}/xdg/autostart/org.kde.discover.notifier.desktop
%{_datadir}/applications/org.kde.discover.notifier.desktop
+%{_datadir}/applications/org.kde.discover.appstreampreview.desktop
%{_libexecdir}/DiscoverNotifier
%files libs -f libdiscover.lang
@@ -272,6 +277,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.desk
%if 0%{?fwupd}
%{_kf6_qtplugindir}/discover/fwupd-backend.so
%endif
+%{_kf6_qtplugindir}/discover/appstream-preview-backend.so
%dir %{_datadir}/libdiscover
%dir %{_datadir}/libdiscover/categories
%{_kf6_qtplugindir}/plasma/kcms/systemsettings/kcm_updates.so
@@ -316,9 +322,21 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.desk
%{_kf6_qtplugindir}/discover/kns-backend.so
%changelog
+* Tue Oct 20 2026 Steve Cossette <steve@ninjasinpajamas.com> - 6.8.1-1
+- 6.8.1
+
* Tue Oct 20 2026 Adam Williamson <adamwill@fedoraproject.org> - 6.7.5-2
- Backport MR #1443 to fix RHBZ #2480694
+* Fri Oct 09 2026 Steve Cossette <farchord@gmail.com> - 6.8.0-1
+- 6.8.0
+
+* Thu Sep 24 2026 Steve Cossette <farchord@gmail.com> - 6.7.91-1
+- 6.7.91
+
+* Thu Sep 10 2026 Steve Cossette <farchord@gmail.com> - 6.7.90-1
+- 6.7.90
+
* Tue Sep 08 2026 Steve Cossette <farchord@gmail.com> - 6.7.5-1
- 6.7.5
diff --git a/sources b/sources
index ebbc6f5..69aa5b1 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (discover-6.7.5.tar.xz) = 95a1b795bd249786d713469f62ad0cac4fa75cb9df43d7355605fef47add437485920206699dfbdb2e7fd47bcfd4538838f1bd24c8c89018032962c42504463f
-SHA512 (discover-6.7.5.tar.xz.sig) = 6312a885c200b2382b676037b1bcb6e3415557a50aa2865133dd5c7e4e979ffdbc692861af0c192fa230dafd0496be0fc7d805e8ed3322384329ac17beaed79f
+SHA512 (discover-6.8.1.tar.xz) = cd4a038582d627052429f23d4138bdfc94c7051f581acce9c6f59646f277b8a16aca05df93737d4f54b04f8bec68af5469a9388565a4b974b0f8ce0b1676e385
+SHA512 (discover-6.8.1.tar.xz.sig) = fec5d58db4821d7a7e842a409b817876ade6fee4ef02c66d063f44c8804589b1dbd99610c744dbd641df31430daa95c5da1bef6280e145ed524d8cb627466237
diff --git a/0001-PackageKitBackend-always-return-highest-versioned-av.patch b/0001-PackageKitBackend-always-return-highest-versioned-av.patch
new file mode 100644
index 0000000..d8cd291
--- /dev/null
+++ b/0001-PackageKitBackend-always-return-highest-versioned-av.patch
@@ -0,0 +1,64 @@
+From dd43490456805dfde4efb500800a3578cffc78b7 Mon Sep 17 00:00:00 2001
+From: Adam Williamson <adamwill@fedoraproject.org>
+Date: Mon, 19 Oct 2026 17:02:17 -0700
+Subject: [PATCH] PackageKitBackend: always return highest versioned
+ availablePackageId
+
+When the m_packages struct contains multiple package IDs,
+PackageKitResource::availablePackageId() has always just made an
+assumption about which one to return. Before 9572f935 it assumed
+the last one was the right one. Since 9572f935 it assumes the first
+one is the right one.
+
+I don't think any assumption is a good idea, here. The current
+assumption seems to be incorrect, per
+https://bugzilla.redhat.com/show_bug.cgi?id=2480694 and my
+investigation in comment 13. Just flipping back to assuming the
+last ID is the right one doesn't seem like a good idea.
+
+Instead, let's actually iterate over the available IDs, get the
+version for each one, and return the one with the highest version.
+
+This should fix things so we don't install old versions when
+multiple versions are available from different repositories.
+
+Signed-off-by: Adam Williamson <adamwill@fedoraproject.org>
+---
+ .../PackageKitBackend/PackageKitResource.cpp | 14 +++++++++++++-
+ 1 file changed, 13 insertions(+), 1 deletion(-)
+
+diff --git a/libdiscover/backends/PackageKitBackend/PackageKitResource.cpp b/libdiscover/backends/PackageKitBackend/PackageKitResource.cpp
+index cb3411eb5..57a3f0dc1 100644
+--- a/libdiscover/backends/PackageKitBackend/PackageKitResource.cpp
++++ b/libdiscover/backends/PackageKitBackend/PackageKitResource.cpp
+@@ -12,6 +12,7 @@
+ #include "appstream/AppStreamUtils.h"
+ #include "config-paths.h"
+ #include <AppStreamQt/spdx.h>
++#include <AppStreamQt/utils.h>
+ #include <KIO/ApplicationLauncherJob>
+ #include <KLocalizedString>
+ #include <KService>
+@@ -72,7 +73,18 @@ QString PackageKitResource::availablePackageId() const
+
+ const auto it = m_packages.constFind(PackageKit::Transaction::InfoAvailable);
+ if (it != m_packages.constEnd()) {
+- return it->first();
++ // find highest versioned entry
++ QString highest;
++ QVector<QString> pkgstocheck = it->archPkgIds;
++ if (it->archPkgIds.isEmpty()) {
++ pkgstocheck = it->nonarchPkgIds;
++ }
++ for (const QString &val : pkgstocheck) {
++ if (highest.isEmpty() || AppStream::Utils::vercmpSimple(PackageKit::Daemon::packageVersion(val), PackageKit::Daemon::packageVersion(highest)) > 0) {
++ highest = val;
++ }
++ }
++ return highest;
+ }
+ return installedPackageId();
+ }
+--
+2.55.0
+
diff --git a/plasma-discover.spec b/plasma-discover.spec
index 04ae7c2..efbfd4e 100644
--- a/plasma-discover.spec
+++ b/plasma-discover.spec
@@ -29,6 +29,10 @@ Source10: discoverrc
Patch200: discover-pk-refresh-timer.patch
## upstreamable patches
+# https://invent.kde.org/plasma/discover/-/merge_requests/1443
+# https://bugzilla.redhat.com/show_bug.cgi?id=2480694
+# make sure we install the highest available version of apps
+Patch201: 0001-PackageKitBackend-always-return-highest-versioned-av.patch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -321,6 +325,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.discover.apps
* Tue Oct 20 2026 Steve Cossette <steve@ninjasinpajamas.com> - 6.8.1-1
- 6.8.1
+* Tue Oct 20 2026 Adam Williamson <adamwill@fedoraproject.org> - 6.7.5-2
+- Backport MR #1443 to fix RHBZ #2480694
+
* Fri Oct 09 2026 Steve Cossette <farchord@gmail.com> - 6.8.0-1
- 6.8.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 14:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 14:26 [rpms/plasma-discover] f44: Merge branch 'rawhide' into f45 Steve Cossette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox