summaryrefslogtreecommitdiff
path: root/testing2x
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-20 20:35:07 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-24 16:33:01 -0600
commitbce56345e8df88782139179cc260bbffeb47290d (patch)
tree22f80db03584e7566138e621abc892480f615c37 /testing2x
parent4595d68c985d05340f2e316823a34b759b043e69 (diff)
testing2x: Remove; it has no place in Parabola.
It was for moving packages from testing to [core] or [extra] (automatically picking the right one). We, of course, don't do that.
Diffstat (limited to 'testing2x')
-rwxr-xr-xtesting2x61
1 files changed, 0 insertions, 61 deletions
diff --git a/testing2x b/testing2x
deleted file mode 100755
index 2ed5c25..0000000
--- a/testing2x
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-
-. "$(dirname "$(readlink -e "$0")")/config"
-. "$(dirname "$(readlink -e "$0")")/db-functions"
-
-if [ $# -lt 1 ]; then
- msg "usage: %s <pkgname|pkgbase> ..." "${0##*/}"
- exit 1
-fi
-
-# Lock everything to reduce possibility of interfering task between the different repo-updates
-script_lock
-for repo in 'core' 'extra' 'testing'; do
- for pkgarch in "${ARCHES[@]}"; do
- repo_lock "${repo}" "${pkgarch}" || exit 1
- done
-done
-
-declare -A pkgs
-
-for pkgbase in "$@"; do
- if [ ! -d "${WORKDIR}/${pkgbase}" ]; then
- /usr/bin/svn export -q "${SVNREPO}/${pkgbase}/repos" "${WORKDIR}/${pkgbase}" >/dev/null
-
- found_source=false
- for pkgarch in "${ARCHES[@]}" 'any'; do
- svnrepo_from="${WORKDIR}/${pkgbase}/testing-${pkgarch}"
- if [ -r "${svnrepo_from}/PKGBUILD" ]; then
- found_source=true
- break
- fi
- done
- "${found_source}" || die "%s not found in [testing]" "${pkgbase}"
- found_target=false
- for pkgarch in "${ARCHES[@]}" 'any'; do
- for repo in 'core' 'extra'; do
- svnrepo_to="${WORKDIR}/${pkgbase}/${repo}-${pkgarch}"
- if [ -r "${svnrepo_to}/PKGBUILD" ]; then
- found_target=true
- pkgs[${repo}]+="${pkgbase} "
- break 2
- fi
- done
- done
- "${found_target}" || die "%s neither found in [core] nor [extra]" "${pkgbase}"
- fi
-done
-
-for pkgarch in "${ARCHES[@]}"; do
- repo_unlock 'testing' "${pkgarch}"
-done
-for repo in 'core' 'extra'; do
- for pkgarch in "${ARCHES[@]}"; do
- repo_unlock "${repo}" "${pkgarch}"
- done
- if [ -n "${pkgs[${repo}]}" ]; then
- "$(dirname "$(readlink -e "$0")")/db-move" 'testing' "${repo}" ${pkgs[${repo}]}
- fi
-done
-
-script_unlock