Commit d9e86de9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbph: fix bug fix positional -n param

parent d889ef6f
...@@ -274,10 +274,11 @@ phelp() ...@@ -274,10 +274,11 @@ phelp()
echog "$Usage" echog "$Usage"
echo "Use rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on" echo "Use rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on"
echog "Options:" echog "Options:"
echog " -r - remote build" echog " -u - sign and upload after build" # will pass to rpmbs/rpmbsh
echog " -u - sign and upload after build" echog " -n - do not build in hasher"
echog " -n - do not build in hasher (use first in the list)" echog " -i - install built packages in test hasher" # will pass to rpmbs/rpmbsh
echog " -i - install built packages in test hasher" echog "Ext. options:"
echog " -r - remote build" # will pass to rpmbs/rpmbsh
echog " -v - more verbose" echog " -v - more verbose"
# echog " -m - send result via e-mail" # echog " -m - send result via e-mail"
} }
...@@ -299,8 +300,9 @@ if [ $# -gt 0 ]; then ...@@ -299,8 +300,9 @@ if [ $# -gt 0 ]; then
shift $((OPTIND - 1)) shift $((OPTIND - 1))
fi fi
# pass other options to RPM: # pass other options to RPM (exclude -n -v):
LISTRPMARGS=$@ LISTRPMARGS=$(drop_args "$@" n v)
} }
if is_girar_name $1 ; then if is_girar_name $1 ; then
......
...@@ -54,6 +54,7 @@ regexp_exclude_list() ...@@ -54,6 +54,7 @@ regexp_exclude_list()
# drop listed options # drop listed options
# FIXME: do not handle args like -Uh, only -U -h separately # FIXME: do not handle args like -Uh, only -U -h separately
# "-n -u -r -i" n i -> "-u -r"
drop_args() drop_args()
{ {
local ARGS="$1" local ARGS="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment