public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pappl-retrofit] f45: fix the upgrade script (fedora#2579837)
@ 2026-11-23 17:09 Zdenek Dohnal
  0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-11-23 17:09 UTC (permalink / raw)
  To: git-commits

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)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 17:09 [rpms/pappl-retrofit] f45: fix the upgrade script (fedora#2579837) Zdenek Dohnal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox