From fa4dcda68416cbdde4c5aeaa533db2a117c13e6d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Jun 2017 09:25:46 +0200 Subject: bin/db-update: decision wether package is from community extracted to new function "official_or_community" --- bin/db-update | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 6831c22..81bb2d6 100755 --- a/bin/db-update +++ b/bin/db-update @@ -204,24 +204,7 @@ for package in ${done_packages}; do sed 's|\(-[^-]\+\)\{3\}\.pkg\.tar\.xz$||' ) ) - case "${package##*.}" in - 'community') - destination='community-testing' - ;; - 'multilib') - a32_rev="${package%.*}" - a32_rev="${a32_rev##*.}" - if git -C "${repo_paths['archlinux32']}" archive --format=tar "${a32_rev}" | \ - tar -Ox 'extra-from-multilib' | \ - grep -q "^${package%.*.*.*}\$"; then - destination='testing' - else - destination='community-testing' - fi - ;; - *) - destination='testing' - esac + destination="$(official_or_community "${package}")testing" pushd "${master_mirror_directory}/i686/staging" > /dev/null mkdir -p "../${destination}" -- cgit v1.2.3-54-g00ecf