Routine for storing repo contents.
authorZdeněk Šustr <sustr4@cesnet.cz>
Fri, 9 Mar 2012 09:46:06 +0000 (09:46 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Fri, 9 Mar 2012 09:46:06 +0000 (09:46 +0000)
org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh

index b659758..acc2889 100755 (executable)
@@ -207,3 +207,18 @@ Clean installation according to EMI guidelines (CA certificates, proxy certifica
 ---++++ Process
 <verbatim>\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
+
+}