do not print setup() arguments by default

pull/1/head 0.1.0
parent e7e6ec0314
commit b827e58d07
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -552,6 +552,7 @@ sub run_apt_progress {
sub setup { sub setup {
my $options = shift; my $options = shift;
if (0) {
foreach my $key (sort keys %{$options}) { foreach my $key (sort keys %{$options}) {
my $value = $options->{$key}; my $value = $options->{$key};
if (!defined $value) { if (!defined $value) {
@ -565,6 +566,7 @@ sub setup {
die "unknown type"; die "unknown type";
} }
} }
}
my ($conf, $tmpfile) = tempfile(UNLINK => 1) or die "cannot open apt.conf: $!"; my ($conf, $tmpfile) = tempfile(UNLINK => 1) or die "cannot open apt.conf: $!";
print $conf "Apt::Architecture \"$options->{nativearch}\";\n"; print $conf "Apt::Architecture \"$options->{nativearch}\";\n";

Loading…
Cancel
Save