chiark / gitweb /
grep-my-excuses: monitor grub
[bin.git] / 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