summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-09-14 01:19:59 +0200
committerDan McGee <dan@archlinux.org>2009-09-14 01:19:59 +0200
commit0897913c0adf10a0a9ff4d8790842715e0e3b1b4 (patch)
treeb93ec0754dbd687e60e3aa3cecec9cb1608b3996 /db-functions
parent2afa1063284a25ae2691b2727c45238d15025a9a (diff)
downloaddbscripts-0897913c0adf10a0a9ff4d8790842715e0e3b1b4.tar.gz
dbscripts-0897913c0adf10a0a9ff4d8790842715e0e3b1b4.tar.xz
Add new get_repos_for_host() function
And use it. This allows us to have server-specific behavior in our scripts without further patching, and it also allows us to simplify some of our scripts a fair amount. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 071fb85..f4f9ee9 100644
--- a/db-functions
+++ b/db-functions
@@ -102,5 +102,12 @@ check_pkg_arch () { #check_pkg_arch pkgfile arch
fi
}
+get_repos_for_host() {
+ if [ "$(hostname)" = "sigurd" ]; then
+ echo "community community-testing"
+ else
+ echo "core extra testing"
+ fi
+}
# vim: set ts=4 sw=4 noet ft=sh: