summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-17 18:13:39 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 14:46:10 -0400
commitfce7610461f8970ea09c8915a83307a5750bcce9 (patch)
tree44d388bf3eeb6856db49144cf511caf215ea9bff
parente4e5a028843316edf73cae4ac70d9df3cf8e1565 (diff)
db-functions: Fix check_repo_permission checking all architectures
It mistakenly looped over just the first element of the ARCHES array, instead of the entire array. This meant that it only checked the permissions for one architecture.
-rw-r--r--db-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/db-functions b/db-functions
index aebfb34..62d0d72 100644
--- a/db-functions
+++ b/db-functions
@@ -483,7 +483,7 @@ check_repo_permission() {
[ -w "$FTP_BASE/${PKGPOOL}" ] || return 1
local arch
- for arch in "${ARCHES}"; do
+ for arch in "${ARCHES[@]}"; do
local dir="${FTP_BASE}/${repo}/os/${arch}/"
[ -w "${dir}" ] || return 1
[ -f "${dir}${repo}"${DBEXT} -a ! -w "${dir}${repo}"${DBEXT} ] && return 1