From a6c1daf42f8507d53ba68fa19ba46a156e269a04 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 16 Sep 2002 17:06:00 +0000 Subject: [PATCH] find-package: Cope better with multiple mirrors, and output full paths. --- find-package | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/find-package b/find-package index 713a67c..1b5594e 100755 --- a/find-package +++ b/find-package @@ -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 -- 2.30.2