public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Dohnal <zdohnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pappl-retrofit] f45: fix the upgrade script (fedora#2579837)
Date: Mon, 23 Nov 2026 17:09:27 GMT [thread overview]
Message-ID: <179545376776.1.15665813562425116297.rpms-pappl-retrofit-86e8ffdfc206@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pappl-retrofit
Branch : f45
Commit : 86e8ffdfc206aeed4372133298d0f02a45441664
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date : 2026-11-23T18:09:08+01:00
Stats : +12/-9 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/pappl-retrofit/c/86e8ffdfc206aeed4372133298d0f02a45441664?branch=f45
Log:
fix the upgrade script (fedora#2579837)
---
diff --git a/pappl-retrofit.spec b/pappl-retrofit.spec
index 35d36f6..daefc9e 100644
--- a/pappl-retrofit.spec
+++ b/pappl-retrofit.spec
@@ -13,7 +13,7 @@
Name: pappl-retrofit
Version: 1.0b3
-Release: 1%{?dist}
+Release: 2%{?dist}
# the CUPS exception text is the same as LLVM exception, so using that name with
# agreement from legal team
# https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/A7GFSD6M3GYGSI32L2FC5KB22DUAEQI3/
@@ -150,24 +150,24 @@ cat > %{buildroot}%{_libexecdir}/legacy-printer-app/posttrans.sh << EOF
# upgrade script for adding new options into existing legacy-printer-app.conf
# runs once on upgrade via legacy-printer-app-conf-upgrade.service
-conf=/etc/legacy-printer-app.conf
+conf="/etc/legacy-printer-app.conf"
-if test ! -f "$conf"
+if test ! -f \$conf
then
exit 0
fi
# add listen-hostname if missing
-if ! grep -q "^listen-hostname=" "$conf"
+if ! grep -q "^listen-hostname=" \$conf
then
- echo "" >> "$conf"
- echo "# listen on localhost by default" >> "$conf"
- echo "listen-hostname=localhost" >> "$conf"
+ echo "" >> \$conf
+ echo "# listen on localhost by default" >> \$conf
+ echo "listen-hostname=localhost" >> \$conf
fi
# mark as upgraded so legacy-printer-app-conf-upgrade.service won't run again
-echo "" >> "$conf"
-echo "# added in version %{version}-%{release}" >> "$conf"
+echo "" >> \$conf
+echo "# added in version %{version}-%{release}" >> \$conf
exit 0
EOF
@@ -255,6 +255,9 @@ fi
%changelog
+* Mon Nov 23 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.0b3-2
+- fix the upgrade script (fedora#2579837)
+
* Thu Nov 12 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.0b3-1
- 1.0b3 (fedora#2571734)
reply other threads:[~2026-11-23 17:09 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=179545376776.1.15665813562425116297.rpms-pappl-retrofit-86e8ffdfc206@fedoraproject.org \
--to=zdohnal@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