Commit 57fb224a authored by Vitaly Lipatov's avatar Vitaly Lipatov

myhsh: add -b BINARYREPO support

parent d2752c41
...@@ -12,7 +12,7 @@ load_mod hasher check ...@@ -12,7 +12,7 @@ load_mod hasher check
WITHSTUFF="--with-stuff" WITHSTUFF="--with-stuff"
############################# #############################
Usage="Usage: $name [-i -c -l] src.rpm..." Usage="Usage: $name [-l -r -c -l -p] src.rpm..."
function mygetopts() function mygetopts()
{ {
name=${0##*/} name=${0##*/}
...@@ -28,13 +28,14 @@ phelp() ...@@ -28,13 +28,14 @@ phelp()
echog " -r remove packages from test hasher" echog " -r remove packages from test hasher"
echog " -p print binary packages by built list" echog " -p print binary packages by built list"
echog " -l lazy cleanup (before build, not after)" echog " -l lazy cleanup (before build, not after)"
echog " -b REPONAME binary repository name (p6, t6, c7, p8 and so on)"
} }
while getopts :hbclr opt; do while getopts :hbclr opt; do
case $opt in case $opt in
h) phelp; exit 0;; h) phelp; exit 0;;
p) PRINTBINPKG=1;; p) PRINTBINPKG=1;;
b) BINARYREPONAME=$OPTARG ;;
r) REMOVEPKG=1;; r) REMOVEPKG=1;;
l) HASHERARG="$HASHERARG --lazy-cleanup";; l) HASHERARG="$HASHERARG --lazy-cleanup";;
c) WITHSTUFF="--without-stuff";; c) WITHSTUFF="--without-stuff";;
......
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