summaryrefslogtreecommitdiff
path: root/db-check-nonfree
diff options
context:
space:
mode:
Diffstat (limited to 'db-check-nonfree')
-rwxr-xr-xdb-check-nonfree22
1 files changed, 11 insertions, 11 deletions
diff --git a/db-check-nonfree b/db-check-nonfree
index 5cb7f6f..6e2dc17 100755
--- a/db-check-nonfree
+++ b/db-check-nonfree
@@ -9,16 +9,16 @@ if [ $# -ge 1 ]; then
fi
# TODO: this might lock too much (architectures)
-for repo in ${repos[@]}; do
- for pkgarch in ${ARCHES[@]}; do
+for repo in "${repos[@]}"; do
+ for pkgarch in "${ARCHES[@]}"; do
repo_lock ${repo} ${pkgarch} || exit 1
done
done
msg "Check nonfree in repo:"
nonfree=($(cut -d: -f1 ${BLACKLIST_FILE} | sort -u))
-for repo in ${ARCHREPOS[@]}; do
- for pkgarch in ${ARCHES[@]}; do
+for repo in "${ARCHREPOS[@]}"; do
+ for pkgarch in "${ARCHES[@]}"; do
msg2 "$repo $pkgarch"
if [ ! -f "${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" ]; then
continue
@@ -27,20 +27,20 @@ for repo in ${ARCHREPOS[@]}; do
unset cleanpkgs
cleanpkgs=()
dbpkgs=($(bsdtar -xOf "${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" | awk '/^%NAME%/{getline;print}' | sort -u ))
- for pkgname in ${dbpkgs[@]}; do
- if in_array ${pkgname} ${nonfree[@]}; then
- cleanpkgs+=(${pkgname})
+ for pkgname in "${dbpkgs[@]}"; do
+ if in_array "${pkgname}" "${nonfree[@]}"; then
+ cleanpkgs+=("${pkgname}")
fi
done
if [ ${#cleanpkgs[@]} -ge 1 ]; then
- msg2 "Nonfree: ${cleanpkgs[@]}"
- arch_repo_remove "${repo}" "${pkgarch}" ${cleanpkgs[@]}
+ msg2 "Nonfree: ${cleanpkgs[*]}"
+ arch_repo_remove "${repo}" "${pkgarch}" "${cleanpkgs[@]}"
fi
done
done
-for repo in ${repos[@]}; do
- for pkgarch in ${ARCHES[@]}; do
+for repo in "${repos[@]}"; do
+ for pkgarch in "${ARCHES[@]}"; do
repo_unlock ${repo} ${pkgarch}
done
done