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 24c2b790..be9c2d72 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -132,7 +132,7 @@ sub dump_config ($$) {
return 0 if $a eq $b;
return -1 if $a eq ''; #- global options come first
return 1 if $b eq '';
- return $config->{$a}{priority} <=> $config->{$b}{priority};
+ return $config->{$a}{priority} <=> $config->{$b}{priority} || $a cmp $b;
} keys %$config;
open my $f, '>', $file or do {
$err = N("unable to write config file [%s]", $file);