Skip to content

Commit b9902ab

Browse files
authored
Merge pull request openSUSE#978 from bmwiedemann/rpm420
Replace deprecated %patchN usage
2 parents 8edd3a4 + f77fefa commit b9902ab

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)