Commit 689275e4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmpub: add -s option to disable set tag and sign src.rpm

parent bb460b8f
...@@ -17,6 +17,7 @@ if [ "$1" = "-h" ]; then ...@@ -17,6 +17,7 @@ if [ "$1" = "-h" ]; then
echo echo
echog "Options:" echog "Options:"
echog " -f force set tag" echog " -f force set tag"
echog " -s skip set tag"
echog " -r PROJECTVERSION set other project version (PROJECTVERSION/sources)" echog " -r PROJECTVERSION set other project version (PROJECTVERSION/sources)"
echog " TARGETDIR copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)" echog " TARGETDIR copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)"
echog " By default used path from Source: spec field. " echog " By default used path from Source: spec field. "
...@@ -30,6 +31,12 @@ if [ "$1" = "-f" ] ; then ...@@ -30,6 +31,12 @@ if [ "$1" = "-f" ] ; then
shift shift
fi fi
SETTAG=-s
if [ "$1" = "-s" ] ; then
SETTAG=
shift
fi
# publish to unstable by default # publish to unstable by default
ALPHA= ALPHA=
if [ "$1" = "-r" ] ; then if [ "$1" = "-r" ] ; then
...@@ -67,7 +74,7 @@ if [ -n "$ALPHA" ] && [ ! -d "$ETERDESTSRPM" ] && [ -d "$PREVPATH" ] ; then ...@@ -67,7 +74,7 @@ if [ -n "$ALPHA" ] && [ ! -d "$ETERDESTSRPM" ] && [ -d "$PREVPATH" ] ; then
fi fi
# just for your information: rpmbs supports ssh-like target # just for your information: rpmbs supports ssh-like target
docmd $ETERBUILDBIN/rpmbs $FORCE -s $SPECNAME || fatal "Can't build SRPMS" docmd $ETERBUILDBIN/rpmbs $FORCE $SETTAG $SPECNAME || fatal "Can't build SRPMS"
# if known target and last link already exists # if known target and last link already exists
if [ -n "$ALPHA" ] && [ -L "$ETERDESTSRPM/../../last" ] ; then if [ -n "$ALPHA" ] && [ -L "$ETERDESTSRPM/../../last" ] ; then
......
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