From 71ce0fe8e2976c4e6c3639f9d03fd9cd964d29a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Fri, 9 Mar 2012 09:46:06 +0000 Subject: [PATCH] Routine for storing repo contents. --- org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh b/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh index b659758..acc2889 100755 --- a/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh +++ b/org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh @@ -207,3 +207,18 @@ Clean installation according to EMI guidelines (CA certificates, proxy certifica ---++++ Process \n" } + +function gen_repo_lists() +{ + egrep -i "Debian|Ubuntu" /etc/issue + if [ $? = 0 ]; then + LISTALLCMD="apt-get install -q --yes" + else + yum install -y -q yum-utils + LISTALLCMD="repoquery -a --qf \"%{name} %{version} %{repoid}\"" + fi + + $LISTALLCMD | grep " EMI" > $1 + $LISTALLCMD | grep " ETICS" > $2 + +} -- 1.8.2.3