Commit d9e86de9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbph: fix bug fix positional -n param

parent d889ef6f
......@@ -274,10 +274,11 @@ phelp()
echog "$Usage"
echo "Use rpmbph -$CURRENTBRANCHNAME for backport to ALT $CURRENTBRANCHNAME and so on"
echog "Options:"
echog " -r - remote build"
echog " -u - sign and upload after build"
echog " -n - do not build in hasher (use first in the list)"
echog " -i - install built packages in test hasher"
echog " -u - sign and upload after build" # will pass to rpmbs/rpmbsh
echog " -n - do not build in hasher"
echog " -i - install built packages in test hasher" # will pass to rpmbs/rpmbsh
echog "Ext. options:"
echog " -r - remote build" # will pass to rpmbs/rpmbsh
echog " -v - more verbose"
# echog " -m - send result via e-mail"
}
......@@ -299,8 +300,9 @@ if [ $# -gt 0 ]; then
shift $((OPTIND - 1))
fi
# pass other options to RPM:
LISTRPMARGS=$@
# pass other options to RPM (exclude -n -v):
LISTRPMARGS=$(drop_args "$@" n v)
}
if is_girar_name $1 ; then
......
......@@ -54,6 +54,7 @@ regexp_exclude_list()
# drop listed options
# FIXME: do not handle args like -Uh, only -U -h separately
# "-n -u -r -i" n i -> "-u -r"
drop_args()
{
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