Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=f6057bf8b91d8d1f329b646b39d45a1cf80680b7
commit f6057bf8b91d8d1f329b646b39d45a1cf80680b7 Author: crazy <[email protected]> Date: Mon Oct 19 08:15:39 2015 +0200 info() - added some missing checks * since the syntax is repoman info <package> we need to check for $1 * before doing something , print a nice msg if not * also reverse the logic in for loop and check first $1 exists diff --git a/repoman b/repoman index a6e4092..629a353 100755 --- a/repoman +++ b/repoman @@ -958,9 +958,16 @@ search() info() { chk_updated $fst_root + if [ -z "$1" ]; then + msg " Use repoman info <pkgname> + exit 1 + fi for i in ${repos[@]} do - if [ -d $fst_root/$i/source/*/$1 ]; then + if [ ! -d $fst_root/$i/source/*/$1 ]; then + msg " Could not find package $1.. Typo?" + exit 1 + else cd $fst_root/$i/source/*/$1 startdir=`pwd` source ./FrugalBuild _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
