[packages/rpm-build-tools/merge-pld-builder-client: 2486/2675] do not fetch tags by default, if needed use -a option yourself
glen
glen at pld-linux.org
Mon Dec 19 22:06:18 CET 2016
commit 3d1d6e6e4a833392d416ed96d19c8e99413bd2de
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri May 16 08:48:34 2014 +0300
do not fetch tags by default, if needed use -a option yourself
php52.sh | 62 ++------------------------------------------------------------
1 file changed, 2 insertions(+), 60 deletions(-)
---
diff --git a/php52.sh b/php52.sh
index 219ee3b..28d762e 100755
--- a/php52.sh
+++ b/php52.sh
@@ -6,64 +6,6 @@ rpmdir=$(rpm -E %_topdir)
dist=th
suffix=${program#php}
-# get_last_specs and autotag copied from rebuild-th-kernel.sh
-# autotag from rpm-build-macros
+specs=$*
-# displays latest used tag for a specfile
-autotag() {
- local out spec pkg ref
- for spec in "$@"; do
- # strip branches
- pkg=${spec%:*}
- # ensure package ends with .spec
- spec=${pkg%.spec}.spec
- # and pkg without subdir
- pkg=${pkg#*/}
- # or .ext
- pkg=${pkg%%.spec}
- cd $rpmdir/$pkg
- git fetch --tags
- if [ -n "$alt_kernel" ]; then
- ref="refs/tags/auto/${dist}/${pkg}-${alt_kernel}-[0-9]*"
- else
- ref="refs/tags/auto/${dist}/${pkg}-[0-9]*"
- fi
- out=$(git for-each-ref $ref --sort=-authordate --format='%(refname:short)' --count=1)
- echo "$spec:$out"
- cd - >/dev/null
- done
-}
-
-get_last_tags() {
- local pkg spec
-
- echo >&2 "Fetching package tags..."
- for pkg in "$@"; do
- # skip options (proxy them)
- if [[ $pkg = -* ]]; then
- echo "$pkg"
- continue
- fi
-
- echo >&2 "$pkg... "
- if [ ! -e $rpmdir/$pkg/$pkg.spec ]; then
- $rpmdir/builder -g $pkg -ns -r HEAD 1>&2
- fi
- if [ ! -e $rpmdir/$pkg/$pkg.spec ]; then
- # just print it out, to fallback to base pkg name
- echo >&2 "... $pkg"
- echo "$pkg"
- else
- spec=$(autotag $pkg/$pkg.spec)
- spec=${spec#*/}
- # update progress
- echo >&2 "... $spec"
- # output
- echo $spec
- fi
- done
-}
-
-specs=$(get_last_tags "$@")
-
-exec $dir/make-request.sh -D "php_suffix $suffix" $specs -C "poldek -ev --noask php$suffix-devel"
+exec $dir/make-request.sh -D "php_suffix $suffix" $specs -C "poldek -ev --noask php$suffix-devel" -n
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list