[packages/rpm-build-tools] update-geoip: allow use .spec files in args
glen
glen at pld-linux.org
Thu May 22 09:17:44 CEST 2014
commit b124f896f38c696eb8e973e70b09df3aabe49dfd
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu May 22 10:16:33 2014 +0300
update-geoip: allow use .spec files in args
update-geoip.sh | 2 ++
1 file changed, 2 insertions(+)
---
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 ..
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/eb2fdba8f785a8750692f7ed8bbd66612ea17e6e
More information about the pld-cvs-commit
mailing list