Skip to content

Commit

Permalink
Merge pull request #978 from bmwiedemann/rpm420
Browse files Browse the repository at this point in the history
Replace deprecated %patchN usage
  • Loading branch information
mlschroe committed Mar 5, 2024
2 parents 8edd3a4 + f77fefa commit b9902ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_add_patch
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ for my $diffname (keys %diffs) {
print "Adding patch$striplevel $diffname to $specname\n";


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

0 comments on commit b9902ab

Please sign in to comment.