summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-20 17:29:40 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-20 17:29:40 +0200
commit5034b4e644c55631dfd5c88b491873389fc52e50 (patch)
tree2f0ae9e1c49be91791a17cea3fac51c5cde2d79d /db-update
parent56363d7e1c3ba52ec5ff4c59c1c8c904b3384fe7 (diff)
downloaddbscripts-5034b4e644c55631dfd5c88b491873389fc52e50.tar.gz
dbscripts-5034b4e644c55631dfd5c88b491873389fc52e50.tar.xz
Replace PKGPOOL_DIR by a function call
The package pool dir depends on the host; so we solve this similar to get_repos_for_host() Note: There is no "os" subdir for the package pool.
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-update b/db-update
index bcfb882..28095d8 100755
--- a/db-update
+++ b/db-update
@@ -131,11 +131,11 @@ for current_arch in ${ARCHES[@]}; do
ftppath="$FTP_BASE/$reponame/os/$current_arch"
ftppath_any="$FTP_BASE/$reponame/os/any"
- poolpath="$FTP_BASE/$PKGPOOL_DIR/os/$current_arch"
- poolpath_any="$FTP_BASE/$PKGPOOL_DIR/os/any"
+ poolpath="$FTP_BASE/$(get_pkgpool_for_host)/$current_arch"
+ poolpath_any="$FTP_BASE/$(get_pkgpool_for_host)/any"
# The following is used to create relative symlinks
- poolrel="../../../$PKGPOOL_DIR/os/$current_arch"
- poolrel_any="../../../$PKGPOOL_DIR/os/any"
+ poolrel="../../../$(get_pkgpool_for_host)/$current_arch"
+ poolrel_any="../../../$(get_pkgpool_for_host)/any"
if [ ! -d "$ftppath" ]; then
echo "FTP path for this repo ($reponame) is missing"