summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/cfg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index 191b2108..7e273375 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -144,7 +144,7 @@ sub dump_config ($$) {
next if !keys %{$config->{''}};
print $f "{\n";
}
- for (sort grep { $_ ne 'url' } keys %{$config->{$m}}) {
+ for (sort grep { $_ && $_ ne 'url' } keys %{$config->{$m}}) {
if (/^(update|ignore|synthesis|virtual)$/) {
print $f " $_\n";
} else {