]> git.donarmstrong.com Git - bugscan.git/blobdiff - bugscan
Change the format of the status file to be something much closer to the
[bugscan.git] / bugscan
diff --git a/bugscan b/bugscan
index c78573f1576eddfc4f20733197cbd438c298c925..69b42e31c91c6c3dddf1ac8a7f4013952a3d8e48 100755 (executable)
--- a/bugscan
+++ b/bugscan
@@ -3,17 +3,14 @@
 require bugcfg;
 require scanlib;
 use strict;
-use warnings;
+use warnings;
 
 # Main part
 
 scanlib::readpackages($bugcfg::debian_ftproot, "debian") if defined $bugcfg::debian_ftproot;
-scanlib::readpackages($bugcfg::nonUS_ftproot, "non-US")  if defined $bugcfg::nonUS_ftproot;
 scanlib::readsources($bugcfg::debian_ftproot, "debian")  if defined $bugcfg::debian_ftproot;
-scanlib::readsources($bugcfg::nonUS_ftproot, "non-US")   if defined $bugcfg::nonUS_ftproot;
 
 scanlib::readdebbugssources($bugcfg::debian_sources, "debian") if defined $bugcfg::debian_sources;
-scanlib::readdebbugssources($bugcfg::nonUS_sources, "non-US") if defined $bugcfg::nonUS_sources;
 
 
 scanlib::readpseudopackages();
@@ -27,12 +24,22 @@ for my $p (keys %scanlib::packagelist) {
        } else {
            $section = $scanlib::debbugssection{$p};
        }
-       print "$p $section $scanlib::maintainer{$p}\n";
-       for my $b (@{$scanlib::packagelist{$p}}) {
-               print "$scanlib::bugs{$b}\n";
+       print "package\n";
+       print $p, "\n";
+       print $section, "\n";
+       print $scanlib::maintainer{$p}, "\n";
+       print "\n";
+}
+
+for my $b (keys %scanlib::bugs) {
+       print "bug\n";
+       for my $key (keys %{$scanlib::bugs{$b}}) {
+               print $key, "=", $scanlib::bugs{$b}->{$key}, "\n";
        }
        print "\n";
 }
 
+print "end\n";
+
 exit 0;