From 48833779774941e1ee019bf95395a8f67e414c52 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 28 Jul 2016 19:27:22 +0200 Subject: [PATCH] - TLD uses pkgrevs, not git tags --- client/make-request.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/client/make-request.sh b/client/make-request.sh index e3fa52d..2c753c9 100755 --- a/client/make-request.sh +++ b/client/make-request.sh @@ -196,7 +196,7 @@ autotag() { # get autotag for specs # WARNING: This may checkout some files from VCS get_autotag() { - local pkg spec rpmdir + local atag pkg spec rpmdir rpmdir=$(rpm -E %_topdir) for pkg in "$@"; do @@ -205,16 +205,13 @@ get_autotag() { pkg=${pkg%:*} # strip .spec extension pkg=${pkg%.spec} - # checkout only if missing - if [ ! -e $pkg/$pkg.spec ]; then - $rpmdir/builder -g $pkg -ns -r HEAD 1>&2 - fi - if [ ! -e $pkg/$pkg.spec ]; then - # just print it out, to fallback to base pkg name - echo "$pkg" + wget http://pkgrevs.tld-linux.org/list/$pkg -O /tmp/$pkg.tags 1>/dev/null 2>&1 + atag=$(head -n 1 /tmp/$pkg.tags) + rm -f /tmp/$pkg.tags + if [ "x$atag" = "x" ]; then + echo "$pkg.spec" else - cd $pkg - autotag $pkg.spec + echo "$pkg.spec:$atag" fi done } -- 2.46.0