From 0897913c0adf10a0a9ff4d8790842715e0e3b1b4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 13 Sep 2009 18:19:59 -0500 Subject: 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 --- db-functions | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'db-functions') 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: -- cgit v1.2.3-24-g4f1b