From: Ondrej Mosnacek <[email protected]> The 'pnum' variable is already there, so why not use it?
Signed-off-by: Ondrej Mosnacek <[email protected]> --- redhat/genspec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redhat/genspec.sh b/redhat/genspec.sh index d75fef669ab7..c211d1aed401 100755 --- a/redhat/genspec.sh +++ b/redhat/genspec.sh @@ -256,7 +256,7 @@ if [ "$SINGLE_TARBALL" = 0 ]; then ":(exclude,top)Makefile.rhelver" \ ":(exclude,top)redhat") for c in $COMMITS; do - patch=$(git format-patch --zero-commit -1 "$c") + patch=$(git format-patch --start-number "$pnum" --zero-commit -1 "$c") echo "$patch" >> $plistf mv $patch $SOURCES/ sed -i "s/%%PATCHLIST%%/Patch$pnum: $patch\n%%PATCHLIST%%/" $SPECFILE -- GitLab _______________________________________________ kernel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
