From 5034b4e644c55631dfd5c88b491873389fc52e50 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 20 Jun 2010 17:29:40 +0200 Subject: 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. --- db-functions | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'db-functions') diff --git a/db-functions b/db-functions index d0665b0..2fe7a49 100644 --- a/db-functions +++ b/db-functions @@ -161,6 +161,14 @@ get_repos_for_host() { fi } +get_pkgpool_for_host() { + if [ "$(hostname)" = "sigurd" ]; then + echo "packages/community" + else + echo "packages/arch" + fi +} + #usage: chk_license ${license[@]}" chk_license() { local l -- cgit v1.2.3-24-g4f1b