summaryrefslogtreecommitdiffstats
path: root/db-move
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-08 00:33:46 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-08 00:33:46 +0200
commit23d4669b8e330d131b2f78cd5858b30a07478c8a (patch)
tree918144a3139b957445971014995d53a97bab6565 /db-move
parent0cfcc705c755eda1911a8868b2214c6a56f8e064 (diff)
downloaddbscripts-23d4669b8e330d131b2f78cd5858b30a07478c8a.tar.gz
dbscripts-23d4669b8e330d131b2f78cd5858b30a07478c8a.tar.xz
Use package pool instead of $repo/os/any dirs
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move17
1 files changed, 8 insertions, 9 deletions
diff --git a/db-move b/db-move
index 407027a..8609459 100755
--- a/db-move
+++ b/db-move
@@ -74,16 +74,15 @@ if [ -d "$packagebase/repos/$svnrepo_from" ]; then
_pkgfiles=''
for i in ${pkgname[@]}; do
- _pkgpath=$(getpkgfile "$ftppath_from/${_arch}/"$i-$pkgver-$pkgrel-$_arch$PKGEXT)
- _pkgfile=$(basename "${_pkgpath}")
-
- # copy package to pool if needed
- # TODO: can be removed once every package has benn moved to the package pool
- if [ ! -f $FTP_BASE/$(get_pkgpool_for_host)/${_arch}/$_pkgfile ]; then
- cp $_pkgpath $FTP_BASE/$(get_pkgpool_for_host)/${_arch}/
- fi
-
for _tarch in ${_tarches[@]}; do
+ _pkgpath=$(getpkgfile "$ftppath_from/${_tarch}/"$i-$pkgver-$pkgrel-$_arch$PKGEXT)
+ _pkgfile=$(basename "${_pkgpath}")
+
+ # copy package to pool if needed
+ # TODO: can be removed once every package has been moved to the package pool
+ if [ ! -f $FTP_BASE/$(get_pkgpool_for_host)/${_arch}/$_pkgfile ]; then
+ cp $_pkgpath $FTP_BASE/$(get_pkgpool_for_host)/${_arch}/
+ fi
ln -s "../../../$(get_pkgpool_for_host)/${_arch}/${_pkgfile}" $ftppath_to/${_tarch}/
done