From: Elan Ruusamäe Date: Thu, 22 May 2014 07:16:33 +0000 (+0300) Subject: update-geoip: allow use .spec files in args X-Git-Tag: auto/th/rpm-build-tools-4.6-4~49 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=b124f896f38c696eb8e973e70b09df3aabe49dfd;p=packages%2Frpm-build-tools.git update-geoip: allow use .spec files in args --- diff --git a/update-geoip.sh b/update-geoip.sh index 20d27eb..21e425a 100755 --- a/update-geoip.sh +++ b/update-geoip.sh @@ -115,6 +115,7 @@ cd "$dir" pkgs='GeoIP-db-City GeoIP-db-Country GeoIP-db-IPASNum xtables-geoip' for pkg in ${*:-$pkgs}; do + pkg=${pkg%.spec} $status && continue get_package $pkg @@ -132,6 +133,7 @@ done # report each package git status for pkg in ${*:-$pkgs}; do + pkg=${pkg%.spec} cd $pkg git status --porcelain cd ..