Construct repo list for debian, too.
authorZdeněk Šustr <sustr4@cesnet.cz>
Wed, 18 Apr 2012 14:28:50 +0000 (14:28 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Wed, 18 Apr 2012 14:28:50 +0000 (14:28 +0000)
org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh

index 7522f04..8c7ee1b 100755 (executable)
@@ -213,6 +213,10 @@ function gen_repo_lists()
        egrep -i "Debian|Ubuntu" /etc/issue
        if [ $? = 0 ]; then
                LISTALLCMD="apt-get install -q --yes"
+               for pkg in `apt-cache pkgnames`; do
+                       apt-cache showpkg $pkg | grep -A 1000 ^Version | grep -B 1000 "^Reverse Depends:" | grep "^[0-9]" | sed "s/^/$pkg /" >> /tmp/allrepos.$$.txt
+               done
+
        else
                yum install -y -q yum-utils
                repoquery -a --qf "%{name} %{version} %{repoid}" > /tmp/allpkgs.$$.txt