chiark / gitweb /
find-package: Cope better with multiple mirrors, and output full paths.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 16 Sep 2002 17:06:00 +0000 (17:06 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 16 Sep 2002 17:06:00 +0000 (17:06 +0000)
find-package

index 713a67c..1b5594e 100755 (executable)
@@ -1,4 +1,6 @@
 #! /bin/sh
-zcat /mirror/debian/dists/unstable/*/binary-$1/Packages.gz \
-     /mirror/debian/non-US/dists/unstable/non-US/*/binary-$1/Packages.gz \
-       | grep-dctrl -nsFilename -PX $2
+MIRRORS='/mirror/debian /mirror/debian/non-US'
+for x in $MIRRORS; do
+    zcat `find "$x/dists" -name Packages.gz` \
+       | grep-dctrl -nsFilename -PX $2 | sed -e "s,^,$x/,"
+done