summaryrefslogtreecommitdiff
path: root/db-check-nonfree
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 00:10:08 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 00:10:08 -0400
commit878a9afd8fe40fa4263c5af04491ff91c8f0c09a (patch)
tree5c8fd61691a9a1560be001cd0ace0112cb432a5a /db-check-nonfree
parent5b6036ac62755ebc7414e0583abeeab33bb75644 (diff)
Use printf-formatters when possible (incomplete)
Diffstat (limited to 'db-check-nonfree')
-rwxr-xr-xdb-check-nonfree6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-check-nonfree b/db-check-nonfree
index 253490b..bea0fa8 100755
--- a/db-check-nonfree
+++ b/db-check-nonfree
@@ -4,7 +4,7 @@
. "$(dirname "$(readlink -e "$0")")/db-functions"
if [[ $# -ge 1 ]]; then
- warning "Calling ${0##*/} with a specific repository is not supported"
+ error "Calling %s with a specific repository is not supported" "${0##*/}"
exit 1
fi
@@ -19,7 +19,7 @@ msg "Check nonfree in repo:"
nonfree=($(cut -d: -f1 "${BLACKLIST_FILE}" | sort -u))
for repo in "${ARCHREPOS[@]}"; do
for pkgarch in "${ARCHES[@]}"; do
- msg2 "$repo $pkgarch"
+ msg2 "%s %s" "$repo" "$pkgarch"
if [ ! -f "${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" ]; then
continue
fi
@@ -33,7 +33,7 @@ for repo in "${ARCHREPOS[@]}"; do
fi
done
if [ ${#cleanpkgs[@]} -ge 1 ]; then
- msg2 "Nonfree: ${cleanpkgs[*]}"
+ msg2 "Nonfree: %s" "${cleanpkgs[*]}"
arch_repo_remove "${repo}" "${pkgarch}" "${cleanpkgs[@]}"
fi
done