From 4704e612377ff0e20acfcb13f1a991ca5058d60a Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernandez Date: Mon, 28 Mar 2011 04:59:22 -0700 Subject: Fixed pkgbuild-check-nonfree, added librerepkg (not done) --- pkgbuild-check-nonfree | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'pkgbuild-check-nonfree') diff --git a/pkgbuild-check-nonfree b/pkgbuild-check-nonfree index 6f3837b..178cd0f 100755 --- a/pkgbuild-check-nonfree +++ b/pkgbuild-check-nonfree @@ -56,18 +56,14 @@ source ./PKGBUILD # The `pkgname', `depends', `makedepends' arrays have been sourced from # ./PKGBUILD. msg "Looking for unfree dependencies" -for where in pkgname depends makedepends ; do - msg2 " Cheking in «${where}»:" - +for item in (${pkgname[@]} ${depends[@]} ${makedepends[@]}) ; do # We cycle through all of the programs in the array (if any), and check if # they are in the `unfree' array. - for item in ${!where[@]} ; do - if in_array $item ${unfree[@]} + if in_array $item ${unfree[@]} then - ev=15 - plain $item - fi - done + ev=15 + msg2 "found $item" + fi done exit $ev \ No newline at end of file -- cgit v1.2.3-54-g00ecf