summaryrefslogtreecommitdiff
path: root/src/pkgbuild-check-nonfree
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkgbuild-check-nonfree')
-rwxr-xr-xsrc/pkgbuild-check-nonfree12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkgbuild-check-nonfree b/src/pkgbuild-check-nonfree
index 9b006c0..5d7a1ae 100755
--- a/src/pkgbuild-check-nonfree
+++ b/src/pkgbuild-check-nonfree
@@ -35,13 +35,13 @@ check_deps() (
exit 1 # not a PKGBUILD
fi
- msg2 "Looking for unfree dependencies of ${pkgbase:-${pkgname[0]}} $(get_full_version)"
+ msg2 'Looking for unfree dependencies of %s %s' "${pkgbase:-${pkgname[0]}}" "$(get_full_version)"
local pkgs=(
# packages being built
"${pkgname[@]}"
# depends
- "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}"
+ "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}" "${optdepends[@]%%:*}"
# mksource depends
"${mkdepends[@]}"
)
@@ -51,18 +51,18 @@ check_deps() (
local rep="$(blacklist-get-rep <<<"$line")"
if [[ -z $line ]]; then
# not mentioned in blacklist; free
- plain "$pkg: free"
+ plain '%s: free' "$pkg"
continue
elif [[ -z $rep ]]; then
# non-free with no replacement
- plain "$pkg: non-free"
+ plain '%s: non-free' "$pkg"
ret=1
else
# non-free with free replacement
if [[ "$rep" == "$pkg" ]]; then
- plain "$pkg: repackaged with the same name."
+ plain '%s: repackaged with the same name.' "$pkg"
else
- plain "$pkg: replaced by $rep"
+ plain '%s: replaced by ' "$pkg" "$rep"
fi
fi
done