|
|
|
@ -27,7 +27,7 @@ use Locale::gettext;
|
|
|
|
|
use vars qw/ $progname $ourversion $dstrap $extra @aptsources
|
|
|
|
|
@archives $deb $cachedir $config_str %packages $retval $str $retries
|
|
|
|
|
$dir $include $arch $foreign $suite $url $unpack $sourcedir $msg
|
|
|
|
|
@e $sourcesname $libdir $dpkgdir @debootstrap %suites $mirror $etcdir
|
|
|
|
|
@e $sourcesname $libdir $dpkgdir @debootstrap %suites %components $component $mirror $etcdir
|
|
|
|
|
$repo @dirs @touch %sources $section %keys $host $key $value $type
|
|
|
|
|
$file $config $tidy $noauth $keyring %keyrings $deflist @extrapkgs /;
|
|
|
|
|
|
|
|
|
@ -87,6 +87,7 @@ foreach $key (%$config)
|
|
|
|
|
%sources=();
|
|
|
|
|
%packages=();
|
|
|
|
|
%suites=();
|
|
|
|
|
%components=();
|
|
|
|
|
%keyrings=();
|
|
|
|
|
@aptsources=();
|
|
|
|
|
foreach $section (sort keys %keys)
|
|
|
|
@ -115,6 +116,11 @@ foreach $section (sort keys %keys)
|
|
|
|
|
$sources{$section}=$keys{$section}{'source'};
|
|
|
|
|
$packages{$section}=$keys{$section}{'packages'};
|
|
|
|
|
$suites{$section}=$keys{$section}{'suite'};
|
|
|
|
|
$components{$section}=$keys{$section}{'components'};
|
|
|
|
|
if (not exists $components{$section})
|
|
|
|
|
{
|
|
|
|
|
$components{$section}='main';
|
|
|
|
|
}
|
|
|
|
|
$keyrings{$section}=$keys{$section}{'keyring'};
|
|
|
|
|
push @extrapkgs, split (' ', lc($keys{$section}{'additional'}));
|
|
|
|
|
}
|
|
|
|
@ -247,9 +253,10 @@ foreach my $aptsrc (@aptsources)
|
|
|
|
|
or die _g("Cannot open sources list"). $!;
|
|
|
|
|
$mirror = $sources{$aptsrc};
|
|
|
|
|
$suite = $suites{$aptsrc};
|
|
|
|
|
$component = $components{$aptsrc};
|
|
|
|
|
print SOURCES<<END;
|
|
|
|
|
deb $mirror $suite main
|
|
|
|
|
deb-src $mirror $suite main
|
|
|
|
|
deb $mirror $suite $component
|
|
|
|
|
deb-src $mirror $suite $component
|
|
|
|
|
END
|
|
|
|
|
close SOURCES;
|
|
|
|
|
}
|
|
|
|
|