[arch-projects] [dbscripts] [PATCH 10/11] db-functions: Fix check_repo_permission checking all architectures
Luke Shumaker
lukeshu at sbcglobal.net
Sun May 17 23:44:18 UTC 2015
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.
---
db-functions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/db-functions b/db-functions
index eb61f51..4fd6763 100644
--- a/db-functions
+++ b/db-functions
@@ -470,7 +470,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
--
2.4.1
More information about the arch-projects
mailing list