X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=7cd2e63386c39cb3fa2abebef87f3391e0439c08;hp=4705946cc776ae35b0d2e6a31f3cc9d75f93055c;hb=95f2bc83a3ae08104239ff38b685286a88fecb20;hpb=98ad74eb8cdf3ce584e496e65d6ea6b2af67cde1 diff --git a/scanlib.pm b/scanlib.pm index 4705946..7cd2e63 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -51,14 +51,10 @@ sub readmaintainers() { } -sub readsources() { - my $root; # Root of archive we are scanning - my $archive; # Name of archive we are scanning - my $sect; # Name of current section - - $root=shift; - $archive=shift; - for $sect (@bugcfg::sections) { +sub readsources { + my ($root,$archive) = @_; + + for my $sect (@bugcfg::sections) { open(P, "zcat $root/$sect/source/Sources.gz|") or die open "open: $sect sourcelist: $!\n"; while (

) { @@ -101,12 +97,9 @@ sub readpackages { } } -sub readdebbugssources() { - my $file; - my $archive; +sub readdebbugssources { + my ($file,$archive) = @_; - $file=shift; - $archive=shift; open(P, $file) or die "open: $file: $!\n"; while (

) {