public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dennis Gilmore <dennis@ausil.us>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: reapply presets after installing
Date: Mon, 10 Aug 2026 09:33:59 GMT [thread overview]
Message-ID: <178635443921.1.13500327089660630489.rpms-fedora-release-e0d1fd9669ee@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : e0d1fd9669ee07810cbf0aaa74452f65f58eb0a0
Author : Dennis Gilmore <dennis@ausil.us>
Date : 2014-08-04T08:57:42-05:00
Stats : +16/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/e0d1fd9669ee07810cbf0aaa74452f65f58eb0a0?branch=f45
Log:
reapply presets after installing
---
diff --git a/fedora-release.spec b/fedora-release.spec
index 52027ec..333875f 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -5,7 +5,7 @@
Summary: Fedora release files
Name: fedora-release
Version: 22
-Release: 0.4
+Release: 0.5
License: MIT
Group: System Environment/Base
URL: http://fedoraproject.org
@@ -54,6 +54,8 @@ Requires: fedora-release = %{version}-%{release}
Requires: systemd
Requires: cockpit
Requires: rolekit
+Requires(post): sed
+Requires(post): systemd
Conflicts: fedora-release-cloud
Conflicts: fedora-release-standard
Conflicts: fedora-release-workstation
@@ -124,6 +126,15 @@ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/
# Fedora Server
install -m 0644 80-server.preset %{buildroot}%{_prefix}/lib/systemd/system-preset/
+%post server
+if [ $1 -eq 1 ] ; then
+ # Initial installation; fix up after %%systemd_post in packages
+ # possibly installed before our preset file was added
+ units=$(sed -n 's/^enable//p' \
+ < %{_prefix}/lib/systemd/system-preset/80-server.preset)
+ /usr/bin/systemctl preset $units >/dev/null 2>&1 || :
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -158,6 +169,9 @@ rm -rf $RPM_BUILD_ROOT
%license LICENSE
%changelog
+* Mon Aug 04 2014 Dennis Gilmore <dennis@ausil.us> - 22-0.5
+- reapply presets after installing
+
* Wed Jul 23 2014 Dennis Gilmore <dennis@ausil.us> - 22-0.4
- add patch from https://fedorahosted.org/rel-eng/ticket/5947 for server
diff --git a/sources b/sources
index f1890df..760253f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2df405d153acf849c81b5a9081e05958 fedora-release-22.tar.bz2
+bd6b72446662524118c5bd856b3edfbc fedora-release-22.tar.bz2
reply other threads:[~2026-08-10 9:33 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=178635443921.1.13500327089660630489.rpms-fedora-release-e0d1fd9669ee@fedoraproject.org \
--to=dennis@ausil.us \
--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