diff options
-rw-r--r-- | urpm.pm | 5 | ||||
-rwxr-xr-x | urpmi | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -181,6 +181,11 @@ sub read_config { $urpm->probe_medium($medium, %options) and push @{$urpm->{media}}, $medium; } + #- load default values + foreach (qw(post-clean verify-rpm)) { + exists $urpm->{options}{$_} or $urpm->{options}{$_} = 1; + } + $urpm->{media} = [ sort { $a->{priority} <=> $b->{priority} } @{$urpm->{media}} ]; #- keep in mind when an hdlist/list file is already used @@ -332,9 +332,6 @@ $urpm->configure(nocheck_access => $env || $< != 0, usedistrib => $usedistrib, ); #- get back activated default values of boolean options. -foreach (qw(post-clean verify-rpm)) { - exists $urpm->{options}{$_} or $urpm->{options}{$_} = 1; -} exists $urpm->{options}{'split-level'} or $urpm->{options}{'split-level'} = $split_level; exists $urpm->{options}{'split-length'} or $urpm->{options}{'split-length'} = $split_length; # comma-separated list of packages that should be installed first, |