public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: Properly import Lua script
Date: Mon, 10 Aug 2026 09:34:13 GMT	[thread overview]
Message-ID: <178635445366.1.4545130768568251712.rpms-fedora-release-96290a77304b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : 96290a77304b2bfc5ac1efa4b28a69efa1aeaddc
            Author : Stephen Gallagher <sgallagh@redhat.com>
            Date   : 2016-03-08T19:56:11-05:00
            Stats  : +11/-10 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/96290a77304b2bfc5ac1efa4b28a69efa1aeaddc?branch=f45

            Log:
            Properly import Lua script

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

---
diff --git a/fedora-release.spec b/fedora-release.spec
index 3262dc7..f31ee77 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -10,6 +10,7 @@ License:        MIT
 Group:          System Environment/Base
 URL:            http://fedoraproject.org
 Source:         %{name}-%{version}.tar.bz2
+Source1:        convert-to-edition.lua
 Obsoletes:      redhat-release
 Provides:       redhat-release
 Provides:       system-release
@@ -208,7 +209,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_prefix}/sbin/
 install -m 0744 convert-to-edition $RPM_BUILD_ROOT/%{_prefix}/sbin/
 
 %post -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 -- On initial installation, we'll at least temporarily put the non-product
 -- symlinks in place. It will be overridden by fedora-release-$EDITION
 -- %%post sections because we don't write the /usr/lib/variant file until
@@ -228,7 +229,7 @@ if read_variant() == "nonproduct" then
 end
 
 %posttrans -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 -- If we get to %%posttrans and nothing created /usr/lib/variant, set it to
 -- nonproduct.
 if posix.stat(VARIANT_FILE) == nil then
@@ -236,35 +237,35 @@ if posix.stat(VARIANT_FILE) == nil then
 end
 
 %post atomichost -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 install_edition("atomichost")
 
 %preun atomichost -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 uninstall_edition("atomichost")
 
 %post cloud -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 install_edition("cloud")
 
 %preun cloud -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 uninstall_edition("cloud")
 
 %post server -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 install_edition("server")
 
 %preun server -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 uninstall_edition("server")
 
 %post workstation -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 install_edition("workstation")
 
 %preun workstation -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
 uninstall_edition("workstation")
 
 %postun workstation

                 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=178635445366.1.4545130768568251712.rpms-fedora-release-96290a77304b@fedoraproject.org \
    --to=sgallagh@redhat.com \
    --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