Skip to content

Commit f77fefa

Browse files
committed
Replace deprecated %patchN usage
and replace it with %patch -P $N for compatibility with rpm 4.20
1 parent ad8accf commit f77fefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec_add_patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ for my $diffname (keys %diffs) {
166166
print "Adding patch$striplevel $diffname to $specname\n";
167167

168168

169-
splice @c, $last_patch_in_prep_index+1, 0, ("\%patch$patchnum$striplevel\n") unless $autopatch;
169+
splice @c, $last_patch_in_prep_index+1, 0, ("\%patch -P$patchnum$striplevel\n") unless $autopatch;
170170
splice @c, $last_patch_in_global_index+1, 0,
171171
(sprintf "Patch%s:%s%s\n", $patchnum, ' ' x (10-length($patchnum)), $diffname);
172172
++$last_patch_in_global_index;

0 commit comments

Comments
 (0)