summaryrefslogtreecommitdiff
path: root/pkgbuild-check-nonfree
diff options
context:
space:
mode:
Diffstat (limited to 'pkgbuild-check-nonfree')
-rwxr-xr-xpkgbuild-check-nonfree8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgbuild-check-nonfree b/pkgbuild-check-nonfree
index 67c562d..7f04787 100755
--- a/pkgbuild-check-nonfree
+++ b/pkgbuild-check-nonfree
@@ -62,12 +62,14 @@ for item in ${pkgname[@]} ${depends[@]} ${makedepends[@]} ; do
# they are in the `unfree' array.
if in_array $item ${unfree[@]} ; then
# if item has a free replacement, use error 16.
- if in_array $item-libre ${freerep[@]} and [[ $ev -ne 15 ]] ; then
- ev=16
+ if in_array $item-libre ${freerep[@]} ; then
warning "$item -> $item-libre"
+ if [[ $ev -ne 15 ]]; then
+ ev=16
+ fi
else
ev=15
- msg2 "found $item"
+ msg2 "found $item"
fi
fi
done