summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-10 21:40:24 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-10 21:40:24 +0200
commitaf4f86808e8cd45cc171f55a1ec15bf30d858a0d (patch)
tree8bc626956bad716595c7123d956cddf583087d87 /db-update
parent9c06372cf6caa2ba25e9ab1f32cbb02b2d280b13 (diff)
downloaddbscripts-af4f86808e8cd45cc171f55a1ec15bf30d858a0d.tar.gz
dbscripts-af4f86808e8cd45cc171f55a1ec15bf30d858a0d.tar.xz
Use more consitent naming for package pool
There are no longer architecture-specific subdirs and the structure was switch to this: ftp └── pool ├── community └── packages packages contains all packages from core, extra and testing; this naming is in sync with the svn repo naming: svn-packages and svn-community
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update12
1 files changed, 5 insertions, 7 deletions
diff --git a/db-update b/db-update
index 375ed02..46becac 100755
--- a/db-update
+++ b/db-update
@@ -89,11 +89,9 @@ for current_arch in ${ARCHES[@]}; do
ftppath="$FTP_BASE/$reponame/os/$current_arch"
ftppath_any="$FTP_BASE/$reponame/os/any"
- poolpath="$FTP_BASE/$(get_pkgpool_for_host)/$current_arch"
- poolpath_any="$FTP_BASE/$(get_pkgpool_for_host)/any"
+ poolpath="$FTP_BASE/$(get_pkgpool_for_host)"
# The following is used to create relative symlinks
- poolrel="../../../$(get_pkgpool_for_host)/$current_arch"
- poolrel_any="../../../$(get_pkgpool_for_host)/any"
+ poolrel="../../../$(get_pkgpool_for_host)"
if [ ! -d "$ftppath" ]; then
echo "FTP path for this repo ($reponame) is missing"
@@ -190,11 +188,11 @@ for current_arch in ${ARCHES[@]}; do
for f in "$WORKDIR/build/"*-any$PKGEXT; do
/bin/chmod 664 "$f" &>/dev/null
fname="$(basename $f)"
- if ! /bin/cp "$f" "$poolpath_any/"; then
- die "error: failure while copying files to $poolpath_any"
+ if ! /bin/cp "$f" "$poolpath/"; then
+ die "error: failure while copying files to $poolpath"
fi
- if ! ln -s "$poolrel_any/$fname" "$ftppath/$fname"; then
+ if ! ln -s "$poolrel/$fname" "$ftppath/$fname"; then
die "error: failure symlinking $fname to $ftppath"
fi
done