summaryrefslogtreecommitdiff
path: root/share/db-functions
diff options
context:
space:
mode:
Diffstat (limited to 'share/db-functions')
-rw-r--r--share/db-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/db-functions b/share/db-functions
index 421404c..1a452f9 100644
--- a/share/db-functions
+++ b/share/db-functions
@@ -359,7 +359,7 @@ check_pkgxbs() {
[ $? -ge 1 ] && return 1
local repo="${2}"
- in_array "${repo}" "${repositories[@]}" || return 1
+ in_array "${repo}" "${main_repositories[@]}" || return 1
local xbsver="$(. "$(xbs releasepath "${_pkgbase}" "${repo}" "${_pkgarch}")/PKGBUILD"; get_full_version "${_pkgname}")"
[ "${xbsver}" == "${_pkgver}" ] || return 1
@@ -424,7 +424,7 @@ check_pkgrepos() {
local repo
local arch
- for repo in "${repositories[@]}"; do
+ for repo in "${main_repositories[@]}"; 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
@@ -449,10 +449,10 @@ chk_license() {
check_repo_permission() {
local repo=$1
- [ ${#repositories[@]} -eq 0 ] && return 1
+ [ ${#main_repositories[@]} -eq 0 ] && return 1
[ -z "${native_packages_pool}" ] && return 1
- in_array "${repo}" "${repositories[@]}" || return 1
+ in_array "${repo}" "${main_repositories[@]}" || return 1
[ -w "${root_dir}/${native_packages_pool}" ] || return 1