From: Zdeněk Šustr Date: Fri, 9 Mar 2012 09:46:06 +0000 (+0000) Subject: Routine for storing repo contents. X-Git-Tag: glite-jobid-api-c_R_2_1_2_1~60 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=71ce0fe8e2976c4e6c3639f9d03fd9cd964d29a0;p=jra1mw.git Routine for storing repo contents. --- 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 + +}