aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Paillard <spaillard@debian.org>2013-08-06 12:23:11 +0200
committerSimon Paillard <spaillard@debian.org>2013-08-06 12:23:11 +0200
commit8f1fb8b1d689487498e2f9915a3ce61b376c7d36 (patch)
treef31b5d6742dc6604399e3fdc8c82a8cbaa477b68
parent4de3865b28015cf29bc7526967cf3caba5facc0e (diff)
Parse from $suite/update/* too
This changes allow proper parsing of a debian-security mirror not managed by packages.d.o instance.
-rwxr-xr-xbin/parse-packages1
-rwxr-xr-xbin/parse-sources3
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/parse-packages b/bin/parse-packages
index e75a500..a7403a9 100755
--- a/bin/parse-packages
+++ b/bin/parse-packages
@@ -77,6 +77,7 @@ for my $suite (@SUITES) {
next;
}
open PKG, "zcat $TOPDIR/archive/$archive/$suite/$what/binary-*/Packages.gz"
+ . " $TOPDIR/archive/$archive/$suite/updates/$what/binary-*/Packages.gz"
. " $TOPDIR/archive/$archive/$suite/$what/debian-installer/binary-*/Packages.gz|";
while (<PKG>) {
next if /^\s*$/;
diff --git a/bin/parse-sources b/bin/parse-sources
index 658e2c1..9600033 100755
--- a/bin/parse-sources
+++ b/bin/parse-sources
@@ -51,7 +51,8 @@ for my $archive (@ARCHIVES) {
print "\tseems not to exist, skipping...\n";
next;
}
- open PKG, "zcat $TOPDIR/archive/$archive/$suite/$what/source/Sources.gz|";
+ open PKG, "zcat $TOPDIR/archive/$archive/$suite/$what/source/Sources.gz";
+ . " $TOPDIR/archive/$archive/$suite/updates/$what/source/Sources.gz|";
while (<PKG>) {
next if /^\s*$/;
my $data = "";