diff options
Diffstat (limited to 'share/db-functions')
-rw-r--r-- | share/db-functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/db-functions b/share/db-functions index ac7e6ef..af99037 100644 --- a/share/db-functions +++ b/share/db-functions @@ -338,7 +338,7 @@ check_pkgfile() { local pkgarch="$(getpkgarch "${pkgfile}")" [ $? -ge 1 ] && return 1 - in_array "${pkgarch}" "${architectures[@]}" 'any' || return 1 + in_array "${pkgarch}" "${native_architectures[@]}" 'any' || return 1 if echo "${pkgfile##*/}" | grep -q "${pkgname}-${pkgver}-${pkgarch}"; then return 0 @@ -425,7 +425,7 @@ check_pkgrepos() { local repo local arch for repo in "${repositories[@]}"; do - for arch in "${architectures[@]}"; do + for arch in "${native_architectures[@]}"; do [ -f "${root_dir}/${repo}/os/${arch}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile} ] && return 1 [ -f "${root_dir}/${repo}/os/${arch}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile}.sig ] && return 1 [ -f "${root_dir}/${repo}/os/${arch}/${pkgfile##*/}" ] && return 1 @@ -457,7 +457,7 @@ check_repo_permission() { [ -w "${root_dir}/${packages_pool}" ] || return 1 local arch - for arch in "${architectures[@]}"; do + for arch in "${native_architectures[@]}"; do local dir="${root_dir}/${repo}/os/${arch}/" [ -w "${dir}" ] || return 1 [ -f "${dir}${repo}"${database_extension_suffixfile} -a ! -w "${dir}${repo}"${database_extension_suffixfile} ] && return 1 |