Commit 7c109184 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmrb: add -n to skip install built package in hasher

parent 35b7d52d
...@@ -13,7 +13,8 @@ load_mod spec git ...@@ -13,7 +13,8 @@ load_mod spec git
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echog "rpmrb (Re Build) - update spec to vermajor.verminor version, build %rel release" echog "rpmrb (Re Build) - update spec to vermajor.verminor version, build %rel release"
echog "Usage: rpmrb [GIRAR] [spec] [vermajor][.verminor] [rel]" echog "Usage: rpmrb [GIRAR] [-n] [spec] [vermajor][.verminor] [rel]"
echog " -n - skip install built package in hasher for testing purposes"
echo "$HELP_GIRAR" echo "$HELP_GIRAR"
echog "Example:" echog "Example:"
echog " $ rpmrb [name.spec] 22.6 alt2" echog " $ rpmrb [name.spec] 22.6 alt2"
...@@ -21,13 +22,18 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then ...@@ -21,13 +22,18 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
exit 0 exit 0
fi fi
INSTALLINHASHER='-i'
parse_r() parse_r()
{ {
VER=$1 VER=$1
case "$2" in case "$2" in
-n)
INSTALLINHASHER=''
;;
-*) -*)
fatal "No options are supported. See --help." fatal "Unsupported option "$2". See --help."
;; ;;
*) *)
esac esac
...@@ -65,4 +71,4 @@ for SPEC in $LISTNAMES ; do ...@@ -65,4 +71,4 @@ for SPEC in $LISTNAMES ; do
cd - >/dev/null cd - >/dev/null
done done
docmd $ETERBUILDBIN/rpmbsh $GIRARHOST -i -u $LISTNAMES docmd $ETERBUILDBIN/rpmbsh $GIRARHOST $INSTALLINHASHER -u $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