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: drop Requires(post): sed
Date: Mon, 10 Aug 2026 09:34:15 GMT	[thread overview]
Message-ID: <178635445501.1.10175708074790213222.rpms-fedora-release-18e38ac6d543@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : 18e38ac6d543bc06c25c938b0094048ac2347297
            Author : Dennis Gilmore <dennis@ausil.us>
            Date   : 2016-03-18T13:30:41-05:00
            Stats  : +17/-4 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/18e38ac6d543bc06c25c938b0094048ac2347297?branch=f45

            Log:
            drop Requires(post): sed

- Fork to execute systemctl calls

Signed-off-by: Dennis Gilmore <dennis@ausil.us>

---
diff --git a/convert-to-edition.lua b/convert-to-edition.lua
index d52a471..2a5b9d9 100644
--- a/convert-to-edition.lua
+++ b/convert-to-edition.lua
@@ -125,8 +125,17 @@ local function set_presets(edition, apply_presets)
       local presets = read_presets(target)
       local systemctl = "/usr/bin/systemctl"
       if posix.access(systemctl, "x") then
-        os.execute(systemctl, "preset", "-q",
-                   table.unpack(presets))
+        --fork off a systemctl call
+        local pid = assert(posix.fork())
+        if pid == 0 then
+          -- Child
+          posix.exec(systemctl, "preset", "-q", table.unpack(presets))
+          -- In case exec() fails
+          os.exit(17)
+        else
+          -- RPM
+          assert(posix.wait(pid))
+        end
       end
     end
   end

diff --git a/fedora-release.spec b/fedora-release.spec
index d9ab8ce..6e12d45 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -5,7 +5,7 @@
 Summary:        Fedora release files
 Name:           fedora-release
 Version:        25
-Release:        0.6
+Release:        0.7
 License:        MIT
 Group:          System Environment/Base
 URL:            http://fedoraproject.org
@@ -333,6 +333,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %config %attr(0644,root,root) /usr/lib/os.release.d/presets/80-workstation.preset
 
 %changelog
+* Fri Mar 18 2016 Dennis Gilmor <dennis@ausil.us> - 25-0.7
+- drop Requires(post): sed
+- Fork to execute systemctl calls
+
 * Tue Mar 15 2016 Dennis Gilmore <dennis@ausil.us> - 25-0.6
 - Properly handle systemd presets in Lua scripts
 - enable opal-prd.service

diff --git a/sources b/sources
index 32416a9..20f58ec 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8370d436c9a73c29ab20ccb8f8666057  fedora-release-25.tar.bz2
+595909a703f39d7316528bfb090f7a15  fedora-release-25.tar.bz2

                 reply	other threads:[~2026-08-10  9:34 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=178635445501.1.10175708074790213222.rpms-fedora-release-18e38ac6d543@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