diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/db-functions | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/db-functions b/share/db-functions index 3424c4b..6e628e2 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}/${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 + [ -f "${root_dir}/${main_packages_pool}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile} ] && return 1 + [ -f "${root_dir}/${main_packages_pool}/${pkgname}-${pkgver}-${pkgarch}"${package_extension_suffixfile}.sig ] && return 1 + [ -f "${root_dir}/${main_packages_pool}/${pkgfile##*/}" ] && return 1 + [ -f "${root_dir}/${main_packages_pool}/${pkgfile##*/}.sig" ] && return 1 local repo local arch @@ -450,11 +450,11 @@ check_repo_permission() { local repo=$1 [ ${#native_repositories[@]} -eq 0 ] && return 1 - [ -z "${native_packages_pool}" ] && return 1 + [ -z "${main_packages_pool}" ] && return 1 in_array "${repo}" "${native_repositories[@]}" || return 1 - [ -w "${root_dir}/${native_packages_pool}" ] || return 1 + [ -w "${root_dir}/${main_packages_pool}" ] || return 1 local arch for arch in "${native_architectures[@]}"; do |