pck-update.in: added --distro-rpm argument to redefine default configured DISTRO_rpm

This commit is contained in:
Silvan Calarco 2022-06-12 11:16:40 +02:00
parent 81464a1fb5
commit 485c2fa685
2 changed files with 9 additions and 1 deletions

View File

@ -138,6 +138,8 @@ function usage() {
"$"Override packager full name"" "$"Override packager full name""
--packager-email --packager-email
"$"Override packager email"" "$"Override packager email""
--distro-rpm
"$"Override release append tag (predefined: $DISTRO_rpm)""
--nosrpm "$"action"" 5: "$"Only build the rpm packages"" --nosrpm "$"action"" 5: "$"Only build the rpm packages""
"$"action"" 10: "$"Do not upload the srpm package"" "$"action"" 10: "$"Do not upload the srpm package""
--norpm "$"action"" 5: "$"Only build the srpm package"" --norpm "$"action"" 5: "$"Only build the srpm package""
@ -198,7 +200,7 @@ exec_options=`LC_ALL=C getopt \
--long \ --long \
update,action:,define:,login:,specfile:,arch:,\ update,action:,define:,login:,specfile:,arch:,\
server-download:,server-upload:,server:,\ server-download:,server-upload:,server:,\
changelog:,packager-fullname:,packager-email:,\ changelog:,packager-fullname:,packager-email:,distro-rpm:,\
nosrpm,norpm,list-check,update-autobuildreq,\ nosrpm,norpm,list-check,update-autobuildreq,\
force-update,force-build,force-install,force-download,force,\ force-update,force-build,force-install,force-download,force,\
ignore-test:,clear,format,log,rebuild,root:,\ ignore-test:,clear,format,log,rebuild,root:,\
@ -252,6 +254,9 @@ while :; do
--packager-email) --packager-email)
packager_email="$2"; shift packager_email="$2"; shift
cmdline_vars[${#cmdline_vars[*]}]="packager_email=\"$packager_email\"" ;; cmdline_vars[${#cmdline_vars[*]}]="packager_email=\"$packager_email\"" ;;
--distro-rpm)
DISTRO_rpm="$2"; shift
cmdline_vars[${#cmdline_vars[*]}]="DISTRO_rpm=\"$DISTRO_rpm\"" ;;
--nosrpm) --nosrpm)
let "nosrpm = 1" ;; let "nosrpm = 1" ;;
--norpm) --norpm)

View File

@ -517,6 +517,9 @@ msgstr "Sostituisce il nome completo del packager"
msgid "Override packager email" msgid "Override packager email"
msgstr "Ridefinisce l'indirizzo mail del packager" msgstr "Ridefinisce l'indirizzo mail del packager"
msgid "Override release append tag (predefined: $DISTRO_rpm)"
msgstr "Ridefinisce l'etichetta aggiunta alla release (predefinito: $DISTRO_rpm)"
msgid "action" msgid "action"
msgstr "azione" msgstr "azione"