summaryrefslogtreecommitdiff
path: root/share/db-functions
diff options
context:
space:
mode:
Diffstat (limited to 'share/db-functions')
-rw-r--r--share/db-functions12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/db-functions b/share/db-functions
index af99037..421404c 100644
--- a/share/db-functions
+++ b/share/db-functions
@@ -417,10 +417,10 @@ check_pkgrepos() {
local pkgarch="$(getpkgarch "${pkgfile}")"
[ $? -ge 1 ] && return 1
- [ -f "${root_dir}/${packages_pool}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile} ] && return 1
- [ -f "${root_dir}/${packages_pool}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile}.sig ] && return 1
- [ -f "${root_dir}/${packages_pool}/${pkgfile##*/}" ] && return 1
- [ -f "${root_dir}/${packages_pool}/${pkgfile##*/}.sig" ] && return 1
+ [ -f "${root_dir}/${native_packages_pool}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile} ] && return 1
+ [ -f "${root_dir}/${native_packages_pool}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile}.sig ] && return 1
+ [ -f "${root_dir}/${native_packages_pool}/${pkgfile##*/}" ] && return 1
+ [ -f "${root_dir}/${native_packages_pool}/${pkgfile##*/}.sig" ] && return 1
local repo
local arch
@@ -450,11 +450,11 @@ check_repo_permission() {
local repo=$1
[ ${#repositories[@]} -eq 0 ] && return 1
- [ -z "${packages_pool}" ] && return 1
+ [ -z "${native_packages_pool}" ] && return 1
in_array "${repo}" "${repositories[@]}" || return 1
- [ -w "${root_dir}/${packages_pool}" ] || return 1
+ [ -w "${root_dir}/${native_packages_pool}" ] || return 1
local arch
for arch in "${native_architectures[@]}"; do