public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Williamson <awilliam@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/unixODBC] rawhide: Make all scriptlets always exit 0, per policy
Date: Tue, 11 Aug 2026 06:22:35 GMT	[thread overview]
Message-ID: <178642935517.1.10387685975653071260.rpms-unixODBC-6998dc5e0ec1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/unixODBC
            Branch : rawhide
            Commit : 6998dc5e0ec1d3738c8b5ec26180e2d9ce9842f6
            Author : Adam Williamson <awilliam@redhat.com>
            Date   : 2026-08-07T09:05:49-07:00
            Stats  : +3/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/unixODBC/c/6998dc5e0ec1d3738c8b5ec26180e2d9ce9842f6?branch=rawhide

            Log:
            Make all scriptlets always exit 0, per policy

Beyond the fix in the previous commit, it is Fedora packaging
policy that all scriptlets must be made to always exit 0:

https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax

This uses the recommended syntax from the policy to ensure
scriptlets always exit 0.

Signed-off-by: Adam Williamson <awilliam@redhat.com>

---
diff --git a/unixODBC.spec b/unixODBC.spec
index 10debf1..9ae1278 100644
--- a/unixODBC.spec
+++ b/unixODBC.spec
@@ -228,15 +228,15 @@ fi
 %dir %{_sysconfdir}/odbc/odbcinst.d
 
 %post -n odbcinst-generate
-odbcinst-generate
+odbcinst-generate || :
 
 # Regenerate odbcinst.ini when driver packages install drop-in snippets
 %transfiletriggerin -n odbcinst-generate -- %{_prefix}/lib/odbc/odbcinst.d %{_sysconfdir}/odbc/odbcinst.d
-odbcinst-generate
+odbcinst-generate || :
 
 # Regenerate after driver packages are removed
 %transfiletriggerpostun -n odbcinst-generate -- %{_prefix}/lib/odbc/odbcinst.d %{_sysconfdir}/odbc/odbcinst.d
-odbcinst-generate
+odbcinst-generate || :
 
 
 %files devel -f devel-so-list

                 reply	other threads:[~2026-08-11  6:22 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=178642935517.1.10387685975653071260.rpms-unixODBC-6998dc5e0ec1@fedoraproject.org \
    --to=awilliam@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