# TODO: move config handling to a separate module
my $config_path = '/etc/debbugs';
require "$config_path/config";
+# Allow other modules to load config into their namespace.
+delete $INC{"$config_path/config"};
use Exporter ();
use vars qw($VERSION @ISA @EXPORT);
my %pkgcomponent;
open(MM,"$Debbugs::Packages::gPackageSource")
- or &quitcgi("open $Debbugs::Packages::gPackageSource: $!");
+ or die("open $Debbugs::Packages::gPackageSource: $!");
while(<MM>) {
next unless m/^(\S+)\s+(\S+)\s+(\S.*\S)\s*$/;
my ($bin,$cmp,$src)=($1,$2,$3);
}
# No $gBinarySourceMap, or it didn't have an entry for this name and
- # version. Try $gPackageSource (unversioned) instead.
- my $pkgsrc = getpkgsrc();
- if (exists $pkgsrc->{$binname}) {
- return [$pkgsrc->{$binname}, $binver];
- } else {
- return ();
- }
+ # version.
+ return ();
}
=item sourcetobinary