summaryrefslogtreecommitdiffstats
path: root/urpm/cfg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-27 17:15:08 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-27 17:15:08 +0000
commitada1534f6420d00de86437e57c921133c5c61ceb (patch)
tree7db618a2d228e19ea651ae1078529344bec937e8 /urpm/cfg.pm
parent412e8c970890f3412d8b67e1d42e96f786aeb211 (diff)
downloadurpmi-ada1534f6420d00de86437e57c921133c5c61ceb.tar
urpmi-ada1534f6420d00de86437e57c921133c5c61ceb.tar.gz
urpmi-ada1534f6420d00de86437e57c921133c5c61ceb.tar.bz2
urpmi-ada1534f6420d00de86437e57c921133c5c61ceb.tar.xz
urpmi-ada1534f6420d00de86437e57c921133c5c61ceb.zip
silent perl_checker
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r--urpm/cfg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index 9d82c06f..5e002b0d 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -141,7 +141,7 @@ sub load_config_raw {
$err = N("medium `%s' is defined twice, aborting", $name);
return;
}
- $block = { name => $name, $url ? (url => $url) : () };
+ $block = { name => $name, $url ? (url => $url) : @{[]} };
} elsif (/^(hdlist
|list
|with_hdlist
@@ -219,7 +219,7 @@ sub dump_config {
my %global = (name => '', %{$config->{global}});
- dump_config_raw($file, [ %global ? \%global : (), @{$config->{media}} ]);
+ dump_config_raw($file, [ %global ? \%global : @{[]}, @{$config->{media}} ]);
}
sub dump_config_raw {