summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions12
1 files changed, 6 insertions, 6 deletions
diff --git a/db-functions b/db-functions
index 9f87298..28928da 100644
--- a/db-functions
+++ b/db-functions
@@ -313,18 +313,18 @@ check_pkgsvn() {
}
get_repos_for_host() {
- if [ "$(hostname)" = "sigurd" ]; then
- echo "community community-testing multilib"
+ if [ -n "${PKGREPO[$(hostname -s)]}" ]; then
+ echo "${PKGREPO[$(hostname -s)]}"
else
- echo "core extra testing staging"
+ echo "${PKGREPO['default']}"
fi
}
get_pkgpool_for_host() {
- if [ "$(hostname)" = "sigurd" ]; then
- echo "pool/community"
+ if [ -n "${PKGPOOL[$(hostname -s)]}" ]; then
+ echo "${PKGPOOL[$(hostname -s)]}"
else
- echo "pool/packages"
+ echo "${PKGPOOL['default']}"
fi
}