blob: 3626432fa3400341eec6f75ccc89f05302049b0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/bash
. "$(dirname $0)/db-functions"
. "$(dirname $0)/config"
case "$0" in
*64)
_arch="x86_64"
;;
*)
_arch="i686"
;;
esac
cd "${WORKDIR}"
/usr/bin/svn checkout -N $SVNREPO checkout
cd checkout
for pkg in $*; do
moved=0
/usr/bin/svn up -q ${pkg}
if [ -f "${pkg}/repos/testing-${_arch}/PKGBUILD" ]; then
for repo in core extra; do
if [ -f "${pkg}/repos/${repo}-${_arch}/PKGBUILD" ]; then
msg "Moving package '${pkg}': testing-${_arch} -> ${repo}-${_arch}"
$(dirname $0)/db-move "${pkg}" "testing" "${repo}" "${_arch}"
moved=1
break
fi
done
if [ ${moved} -eq 0 ]; then
warning "${pkg} is only in testing-${_arch}, cannot determine where to move it"
fi
else
warning "${pkg} is not in testing-${_arch}"
fi
done
|