diff options
-rwxr-xr-x | bin/debian-depends | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/debian-depends b/bin/debian-depends index 0d06bce..ed861ce 100755 --- a/bin/debian-depends +++ b/bin/debian-depends @@ -5,19 +5,24 @@ find /tmp/debian-depends -type f -mtime +1 -delete if [ ! -e /tmp/debian-depends/Packages ] then + echo -n "Downloading package indices... " + for DISTRIBUTION in unstable experimental do for SECTION in main contrib non-free non-free-firmware do for ARCHITECTURE in amd64 all do - wget https://mirror.init7.net/debian/dists/${DISTRIBUTION}/${SECTION}/binary-${ARCHITECTURE}/Packages.xz -O - | xzcat - >> /tmp/debian-depends/Packages + echo -n "." + wget -q https://mirror.init7.net/debian/dists/${DISTRIBUTION}/${SECTION}/binary-${ARCHITECTURE}/Packages.xz -O - | xzcat - >> /tmp/debian-depends/Packages done done done + + echo " done." fi for PACKAGE in ${@} do - grep ${PACKAGE} /tmp/debian-depends/Packages + grep --color=always ${PACKAGE} /tmp/debian-depends/Packages done |