diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-09-01 19:34:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-09-01 19:34:47 +0200 |
commit | 328b1ce478e25902aba5d8f19024dadeaaf3f678 (patch) | |
tree | 83620bdcb713057e32887b6e54d23137d78c8b22 /db-functions | |
parent | 3c07e2e3ff951242a5d9fc124c6937e75e961da2 (diff) | |
download | dbscripts-328b1ce478e25902aba5d8f19024dadeaaf3f678.tar.gz dbscripts-328b1ce478e25902aba5d8f19024dadeaaf3f678.tar.xz |
Simplify repo configuration
* Repositories can now be defined in the config file for each host
* added community-staging, gnome-unstable and kde-unstable
* Exception is the adjust-permission cron-job; but we might want to use acls in future anyway
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 12 |
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 } |