summaryrefslogtreecommitdiff
path: root/share/db-functions
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-24 00:09:48 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-24 00:09:48 -0300
commite21b2e2ecc559e525d43650239631b838bb79d51 (patch)
treea479435c1250d8aa739394f67cb3cf51bdfc9d5a /share/db-functions
parentf291f3c6183f9ddfa189bc231fefac358523f929 (diff)
remove deprecated repositories variables
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