[packages/rpm-pld-macros] Fix patchset macros.

arekm arekm at pld-linux.org
Mon May 19 09:30:06 CEST 2025


commit 814ed46ef6d63df845b380edadc5f942303055ef
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon May 19 08:16:43 2025 +0200

    Fix patchset macros.

 macros.pld          | 4 ++--
 rpm-pld-macros.spec | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 13188b3..801c5c3 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -1,4 +1,4 @@
-%define		rpm_macros_rev	2.047
+%define		rpm_macros_rev	2.048
 %define		find_lang_rev	1.42
 # split into individual X_prov_ver if there is a reason to desync
 %define		prov_ver	4.15
diff --git a/macros.pld b/macros.pld
index d76a5e3..75bf473 100644
--- a/macros.pld
+++ b/macros.pld
@@ -1447,7 +1447,7 @@ fi;
 	filelist='%{-s*}'
 	i=$base
 	while read checksum file; do
-		printf "patch%d %s\\n" $i "$patchlevel" | sed -e s,^,%%,
+		printf "patch -P%d %s\\n" $i "$patchlevel" | sed -e s,^,%%,
 		i=$((i+1))
 	done < $filelist
 }
@@ -1455,7 +1455,7 @@ fi;
 	start=$(expr $base + %1);
 	end=$(expr $base + %{?2}%{!?2:%{1}});
 	echo ": patchset_patch %1%{?2: to %2}";
-	seq -f "patch%g $patchlevel" $start $end | sed -e s,^,%%,;
+	seq -f "patch -P%g $patchlevel" $start $end | sed -e s,^,%%,;
 }
 ) \
 %{nil}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/814ed46ef6d63df845b380edadc5f942303055ef



More information about the pld-cvs-commit mailing list