summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/cfg.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index b6610c71..ec8f064a 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -134,6 +134,7 @@ sub dump_config ($$) {
if ($m) {
print $f quotespace($m), ' ', quotespace($config->{$m}{url}), " {\n";
} else {
+ next if !keys %{$config->{''}};
print $f "{\n";
}
for (sort grep { $_ ne 'url' } keys %{$config->{$m}}) {