summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-16 13:46:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-16 13:46:38 +0000
commit4ab2b42cd48384f774b9c8f380df0989b849d9e2 (patch)
tree884b28f1264cf0b30d173654a74368bc84c6eb87 /urpm
parent0decf5401ecd2e2f58229ddad57b667d383b4f55 (diff)
downloadurpmi-4ab2b42cd48384f774b9c8f380df0989b849d9e2.tar
urpmi-4ab2b42cd48384f774b9c8f380df0989b849d9e2.tar.gz
urpmi-4ab2b42cd48384f774b9c8f380df0989b849d9e2.tar.bz2
urpmi-4ab2b42cd48384f774b9c8f380df0989b849d9e2.tar.xz
urpmi-4ab2b42cd48384f774b9c8f380df0989b849d9e2.zip
don't set priority for global values (this will allow taking all of them in urpm::read_config())
Diffstat (limited to 'urpm')
-rw-r--r--urpm/cfg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index f1dbf9a8..06f3c7ef 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -106,7 +106,7 @@ sub expand_line {
sub load_config ($;$) {
my ($file, $b_norewrite) = @_;
my %config;
- my $priority = 0;
+ my $priority = 1;
my $medium;
$err = '';
my @conf_lines = cat_($file) or do { $err = N("unable to read config file [%s]", $file); return };
@@ -120,7 +120,7 @@ sub load_config ($;$) {
_syntax_error();
return;
}
- $config{$medium}{priority} = $priority++; #- to preserve order
+ $config{$medium}{priority} = $priority++ if $medium ne ''; #- to preserve order
undef $medium;
next;
}