public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: kde: Identify plasma-desktop as a protected package for DNF
@ 2026-08-10 9:35 Neal Gompa
0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-08-10 9:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : 401a7af2ee70ac907d88c79a7cd0ad0c68952e8f
Author : Neal Gompa <ngompa@fedoraproject.org>
Date : 2021-11-10T18:21:23-05:00
Stats : +5/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/401a7af2ee70ac907d88c79a7cd0ad0c68952e8f?branch=f45
Log:
kde: Identify plasma-desktop as a protected package for DNF
This ensures that people can't accidentally break their desktop
when using the KDE spin through DNF or anything that uses DNF's
protected packages feature.
Signed-off-by: Neal Gompa <ngompa@fedoraproject.org>
---
diff --git a/fedora-release.spec b/fedora-release.spec
index 6fe266c..6f9306c 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -89,6 +89,7 @@ Source21: gnome-shell.conf
Source22: 80-coreos.preset
Source23: zezere-ignition-url
Source24: 80-iot-user.preset
+Source25: plasma-desktop.conf
BuildArch: noarch
@@ -1031,6 +1032,8 @@ echo "VARIANT=\"KDE Plasma\"" >> %{buildroot}%{_prefix}/lib/os-release.kde
echo "VARIANT_ID=kde" >> %{buildroot}%{_prefix}/lib/os-release.kde
sed -i -e "s|(%{release_name}%{?prerelease})|(KDE Plasma%{?prerelease})|g" %{buildroot}%{_prefix}/lib/os-release.kde
sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/KDE/;s/<!--.*-->//;/^$/d' %{SOURCE20} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.kde
+# Add plasma-desktop to dnf protected packages list for KDE
+install -Dm0644 %{SOURCE25} -t %{buildroot}%{_sysconfdir}/dnf/protected.d/
%endif
%if %{with matecompiz}
@@ -1289,6 +1292,7 @@ ln -s %{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swidtags.d/fedoraproject.or
%files identity-kde
%{_prefix}/lib/os-release.kde
%attr(0644,root,root) %{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.kde
+%{_sysconfdir}/dnf/protected.d/plasma-desktop.conf
%endif
diff --git a/plasma-desktop.conf b/plasma-desktop.conf
new file mode 100644
index 0000000..9a6b41b
--- /dev/null
+++ b/plasma-desktop.conf
@@ -0,0 +1 @@
+plasma-desktop
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:35 [rpms/fedora-release] f45: kde: Identify plasma-desktop as a protected package for DNF Neal Gompa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox