From e289c2bf26016ae43fe8d6c61ff43bd4b7d3bf7d Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 26 Jul 2004 02:09:12 +0000 Subject: Disambiguate order by sorting by name new media with the same priority --- urpm/cfg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm') 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); -- cgit v1.2.1