summaryrefslogtreecommitdiff
path: root/share/db-functions
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-24 00:26:02 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-24 00:26:02 -0300
commitab53d40da0070cff1f1d3bbae8664918a90076b7 (patch)
tree7f1b65677060635944e09711c98385c2ba07d753 /share/db-functions
parent922976d3d2fc5279070860fc7a4541160ef72fe1 (diff)
remane main -> native (if not derivation) and native -> main (if not multilib)
Diffstat (limited to 'share/db-functions')
-rw-r--r--share/db-functions26
1 files changed, 13 insertions, 13 deletions
diff --git a/share/db-functions b/share/db-functions
index 6e628e2..0c82daa 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}" "${native_architectures[@]}" 'any' || return 1
+ in_array "${pkgarch}" "${main_architectures[@]}" 'any' || return 1
if echo "${pkgfile##*/}" | grep -q "${pkgname}-${pkgver}-${pkgarch}"; then
return 0
@@ -359,7 +359,7 @@ check_pkgxbs() {
[ $? -ge 1 ] && return 1
local repo="${2}"
- in_array "${repo}" "${native_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
@@ -417,15 +417,15 @@ check_pkgrepos() {
local pkgarch="$(getpkgarch "${pkgfile}")"
[ $? -ge 1 ] && 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
+ [ -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
- for repo in "${native_repositories[@]}"; do
- for arch in "${native_architectures[@]}"; do
+ for repo in "${main_repositories[@]}"; do
+ for arch in "${main_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
@@ -449,15 +449,15 @@ chk_license() {
check_repo_permission() {
local repo=$1
- [ ${#native_repositories[@]} -eq 0 ] && return 1
- [ -z "${main_packages_pool}" ] && return 1
+ [ ${#main_repositories[@]} -eq 0 ] && return 1
+ [ -z "${native_packages_pool}" ] && return 1
- in_array "${repo}" "${native_repositories[@]}" || return 1
+ in_array "${repo}" "${main_repositories[@]}" || return 1
- [ -w "${root_dir}/${main_packages_pool}" ] || return 1
+ [ -w "${root_dir}/${native_packages_pool}" ] || return 1
local arch
- for arch in "${native_architectures[@]}"; do
+ for arch in "${main_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