Commit 8012b098 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbsh: add support for -f (--force) option

parent b2b4848a
...@@ -20,7 +20,7 @@ REMCOM= ...@@ -20,7 +20,7 @@ REMCOM=
COMMIT= COMMIT=
############################# #############################
Usage="Usage: $name [-r -s -u -m -i -c] [spec or src.rpm]..." Usage="Usage: $name [-r -s -u -m -i -c] [-f] [spec or src.rpm]..."
function mygetopts() function mygetopts()
{ {
name=${0##*/} name=${0##*/}
...@@ -39,6 +39,7 @@ phelp() ...@@ -39,6 +39,7 @@ phelp()
echog " -s - sign and and copy to upload dir (ETERDESTSRPM) after build" echog " -s - sign and and copy to upload dir (ETERDESTSRPM) after build"
echog " -t - make temporary commit before build (rpmbb like behavior)" echog " -t - make temporary commit before build (rpmbb like behavior)"
echog " -l - lazy cleanup (clean before build, not after)" echog " -l - lazy cleanup (clean before build, not after)"
echog " -f - force tag set (see rpmbs --help)"
} }
while getopts :hrulsimt opt; do while getopts :hrulsimt opt; do
...@@ -77,7 +78,7 @@ fi ...@@ -77,7 +78,7 @@ fi
# We do not not pass args for myhsh here... # We do not not pass args for myhsh here...
# FIXME: не обрабатывает два пропускаемых вместе параметра # FIXME: не обрабатывает два пропускаемых вместе параметра
pack_src_rpm $COMMIT $(drop_args "$LISTRPMARGS" s u U i c l) pack_src_rpm $COMMIT $(drop_args "$LISTRPMARGS" s u U i c l f)
if echo "$LISTNAMES" | grep -q spec ; then if echo "$LISTNAMES" | grep -q spec ; then
set_specdir $LISTNAMES set_specdir $LISTNAMES
......
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