summaryrefslogtreecommitdiff
path: root/src/pkgbuild-check-nonfree
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-07-06 16:33:39 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-07-06 16:33:39 -0600
commit933e2e616bf2463d29a586c13b835e5d99e123b7 (patch)
tree9c38beab05157d796119b6dcb2c6327997fa08e2 /src/pkgbuild-check-nonfree
parente299fd1a72aaadcdd807f6c1ba08e0460a626c30 (diff)
pkgbuild-check-nonfree: use printf-type messages, not string interpolation.
Diffstat (limited to 'src/pkgbuild-check-nonfree')
-rwxr-xr-xsrc/pkgbuild-check-nonfree10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pkgbuild-check-nonfree b/src/pkgbuild-check-nonfree
index 9b006c0..262c1fb 100755
--- a/src/pkgbuild-check-nonfree
+++ b/src/pkgbuild-check-nonfree
@@ -35,7 +35,7 @@ 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
@@ -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