X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=kde4send2builders.sh;h=801f86de8f93b1ab9fde9d536ce6ea7ceabbc7cb;hb=3e9a7bf0474933245b19c717f7180bde09eb387b;hp=04c68da1da96fae86d5182a42228f79eeabea5a6;hpb=a64787663ab0b62d746362ffbe9ba01dbf3c3050;p=packages%2Frpm-build-tools.git diff --git a/kde4send2builders.sh b/kde4send2builders.sh index 04c68da..801f86d 100755 --- a/kde4send2builders.sh +++ b/kde4send2builders.sh @@ -16,6 +16,8 @@ usage() { echo " -b --builder VALUE" echo " choose a particular builder, default all" echo " -p --priority VALUE (default: 2)" + echo " -s --skip-fetch-tags (default: no)" + echo " skip git fetch --tags when getting autotag" echo " -h --help" echo " show this help" echo "" @@ -38,6 +40,7 @@ ATAG=no SENDPRIO= BUILDER= PRIO=2 +SKIPFETCHTAGS=0 #SPECDIR=$(rpm -E %_specdir) SPECDIR=~/rpm @@ -120,6 +123,10 @@ while [ $# -gt 0 ]; do PRIO=$2 shift ;; + + --skip-fetch-tags | -s ) + SKIPFETCHTAGS=1 + ;; --help | -h ) usage @@ -180,7 +187,11 @@ if [ "$ATAG" == "yes" ]; then if [ ! -d $PKG ]; then git clone git@git.tld-linux.org:packages/${PKG} fi - LAST_AUTOTAG=$(cd $PKG && git pull >/dev/null && git tag |tail -n 1) + if [ $SKIPFETCHTAGS -lt 1 ]; then + LAST_AUTOTAG=$(cd $PKG && git fetch --tags >/dev/null && git tag |tail -n 1) + else + LAST_AUTOTAG=$(cd $PKG && git tag |tail -n 1) + fi sleep 1 SENDPRIO="$SENDPRIO $spec:$LAST_AUTOTAG " done