summaryrefslogtreecommitdiffstats
path: root/testing2x
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-06-10 12:28:38 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-06-10 12:28:38 +0200
commit75deac81c2ca88219a4bc31d4a9a3da4f8274863 (patch)
tree46a7396f4858f319bf729445d3dcbe8917471df3 /testing2x
parentbc7cc36f4741c7a800afd94952dfccfdb4da2707 (diff)
downloaddbscripts-75deac81c2ca88219a4bc31d4a9a3da4f8274863.tar.gz
dbscripts-75deac81c2ca88219a4bc31d4a9a3da4f8274863.tar.xz
Make repositories for testing2x configurable20120610
Diffstat (limited to 'testing2x')
-rwxr-xr-xtesting2x16
1 files changed, 8 insertions, 8 deletions
diff --git a/testing2x b/testing2x
index f209e83..a05cb53 100755
--- a/testing2x
+++ b/testing2x
@@ -10,7 +10,7 @@ fi
# Lock everything to reduce possibility of interfering task between the different repo-updates
script_lock
-for repo in 'core' 'extra' 'testing'; do
+for repo in ${TESTING_REPO} ${STABLE_REPOS[@]}; do
for pkgarch in ${ARCHES[@]}; do
repo_lock ${repo} ${pkgarch} || exit 1
done
@@ -24,16 +24,16 @@ for pkgbase in $*; do
found_source=false
for pkgarch in ${ARCHES[@]} 'any'; do
- svnrepo_from="${WORKDIR}/${pkgbase}/testing-${pkgarch}"
+ svnrepo_from="${WORKDIR}/${pkgbase}/${TESTING_REPO}-${pkgarch}"
if [ -r "${svnrepo_from}/PKGBUILD" ]; then
found_source=true
break
fi
done
- ${found_source} || die "${pkgbase} not found in [testing]"
+ ${found_source} || die "${pkgbase} not found in [${TESTING_REPO}]"
found_target=false
for pkgarch in ${ARCHES[@]} 'any'; do
- for repo in 'core' 'extra'; do
+ for repo in ${STABLE_REPOS[@]}; do
svnrepo_to="${WORKDIR}/${pkgbase}/${repo}-${pkgarch}"
if [ -r "${svnrepo_to}/PKGBUILD" ]; then
found_target=true
@@ -42,19 +42,19 @@ for pkgbase in $*; do
fi
done
done
- ${found_target} || die "${pkgbase} neither found in [core] nor [extra]"
+ ${found_target} || die "${pkgbase} not found in any of these repos: ${STABLE_REPOS[@]}"
fi
done
for pkgarch in ${ARCHES[@]}; do
- repo_unlock 'testing' ${pkgarch}
+ repo_unlock ${TESTING_REPO} ${pkgarch}
done
-for repo in 'core' 'extra'; do
+for repo in ${STABLE_REPOS[@]}; do
for pkgarch in ${ARCHES[@]}; do
repo_unlock ${repo} ${pkgarch}
done
if [ -n "${pkgs[${repo}]}" ]; then
- "$(dirname $0)/db-move" 'testing' "${repo}" ${pkgs[${repo}]}
+ "$(dirname $0)/db-move" ${TESTING_REPO} "${repo}" ${pkgs[${repo}]}
fi
done