diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-26 02:09:12 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-07-26 02:09:12 +0000 |
commit | e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d (patch) | |
tree | 2a4c49f0cae3097576f2f91be8e271fbd8e1629a /urpm | |
parent | 4876d568b0bcda214c11ff057fa3e3df85a850a4 (diff) | |
download | urpmi-e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d.tar urpmi-e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d.tar.gz urpmi-e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d.tar.bz2 urpmi-e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d.tar.xz urpmi-e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d.zip |
Disambiguate order by sorting by name new media with the same priority
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/cfg.pm | 2 |
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); |