From 975660674e48954b1f96cb489a232181b85a4928 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 23 Sep 2015 23:22:45 -0300 Subject: remove deprecated architectures variables --- share/db-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share/db-functions') 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 -- cgit v1.2.3-54-g00ecf