public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: kde: Identify plasma-desktop as a protected package for DNF
Date: Mon, 10 Aug 2026 09:35:44 GMT [thread overview]
Message-ID: <178635454459.1.15260411688523977749.rpms-fedora-release-401a7af2ee70@fedoraproject.org> (raw)
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
reply other threads:[~2026-08-10 9:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178635454459.1.15260411688523977749.rpms-fedora-release-401a7af2ee70@fedoraproject.org \
--to=ngompa@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox