From 0bb4c00e0354763bfd8069016727400cf171d284 Mon Sep 17 00:00:00 2001 From: Steve McIntyre <93sam@debian.org> Date: Mon, 28 Nov 2011 16:20:50 +0000 Subject: [PATCH] Add more debug when we fail to find Packages data for some reason --- tools/make_disc_trees.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/make_disc_trees.pl b/tools/make_disc_trees.pl index a64869f1..ab667758 100755 --- a/tools/make_disc_trees.pl +++ b/tools/make_disc_trees.pl @@ -949,10 +949,16 @@ sub add_Packages_entry { if ($arch eq "source") { m/^Directory: (\S+)/mi and $file = $1; + if (!defined($file)) { + die "Can't parse source file information out of $_\n"; + } $pdir = Packages_dir($dir, $file, $section) . "/source"; $pkgfile = "$pdir/Sources"; } else { m/^Filename: (\S+)/mi and $file = $1; + if (!defined($file)) { + die "Can't parse binary file information out of $_\n"; + } $pdir = Packages_dir($dir, $file, $section) . "/binary-$arch"; $pkgfile = "$pdir/Packages"; }