Commit 5b1bba66 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: add -t option (just set signed tag)

parent 29cd6811
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
load_mod rpm tarball alt git web load_mod rpm tarball alt git web
SIGN= SIGN=
SIGNTAG=
UPLOADNOW= UPLOADNOW=
CHECKONLY= CHECKONLY=
NOSOURCE= NOSOURCE=
...@@ -31,7 +32,7 @@ POCKET= ...@@ -31,7 +32,7 @@ POCKET=
TASKNUMBER= TASKNUMBER=
############################# #############################
Usage="Usage: $name [-s -u -c -n --nodeps] [spec or src.rpm]..." Usage="Usage: $name [-s|-t|-u|-a|-c] [-o -z -n -p --nodeps] [spec or src.rpm]..."
function mygetopts() function mygetopts()
{ {
name=${0##*/} name=${0##*/}
...@@ -49,6 +50,7 @@ phelp() ...@@ -49,6 +50,7 @@ phelp()
echog " -c - only sign package(s) with checking" echog " -c - only sign package(s) with checking"
echog " -f - force operation (overwrite tag)" echog " -f - force operation (overwrite tag)"
echog " -s - sign package(s) and copy it to upload dir (ETERDESTSRPM)" echog " -s - sign package(s) and copy it to upload dir (ETERDESTSRPM)"
echog " -t - set tag with sign"
echog " -n - do not check with sisyphus_check before upload" echog " -n - do not check with sisyphus_check before upload"
echog " -o - create nosrc.rpm package" echog " -o - create nosrc.rpm package"
echog " -z - create src.rpm with compatible gzip compression" echog " -z - create src.rpm with compatible gzip compression"
...@@ -56,10 +58,11 @@ phelp() ...@@ -56,10 +58,11 @@ phelp()
# echog " -d - remove package(s) from SRPMS and Incoming" # echog " -d - remove package(s) from SRPMS and Incoming"
} }
while getopts :hfscuUdnop:a:z opt; do while getopts :hfstcuUdnop:a:z opt; do
case $opt in case $opt in
h) phelp; exit 0;; h) phelp; exit 0;;
s) SIGN=1 ;; s) SIGN=1 ;;
t) SIGNTAG=1 ;;
f) FORCE="--force" ;; f) FORCE="--force" ;;
# FIXME: handle SIGN separately # FIXME: handle SIGN separately
c) CHECKONLY=1 ; SIGN=1 ;; c) CHECKONLY=1 ; SIGN=1 ;;
...@@ -172,6 +175,12 @@ mygetopts $LISTARGS ...@@ -172,6 +175,12 @@ mygetopts $LISTARGS
LISTBUILT="" LISTBUILT=""
CURDIR=`pwd` CURDIR=`pwd`
if [ -n "$SIGNTAG" ] ; then
echo "Set tag..."
check_gear_and_tag ""
exit $?
fi
if [ -n "$NOSOURCE" ] ; then if [ -n "$NOSOURCE" ] ; then
$RPMBUILD -bs --nosource 0 $LISTNAMES $RPMBUILD -bs --nosource 0 $LISTNAMES
exit $? exit $?
......
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