summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-29 18:24:54 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-29 18:24:54 +0000
commit0fc0fcebc9086b7f3c0e67c3fc0fc70e2eae1363 (patch)
tree09d43a3e90beb080119c0636a976e4f605153c17 /urpm.pm
parent90042204c87ba41cf50c396eb0830608c5e11577 (diff)
downloadurpmi-0fc0fcebc9086b7f3c0e67c3fc0fc70e2eae1363.tar
urpmi-0fc0fcebc9086b7f3c0e67c3fc0fc70e2eae1363.tar.gz
urpmi-0fc0fcebc9086b7f3c0e67c3fc0fc70e2eae1363.tar.bz2
urpmi-0fc0fcebc9086b7f3c0e67c3fc0fc70e2eae1363.tar.xz
urpmi-0fc0fcebc9086b7f3c0e67c3fc0fc70e2eae1363.zip
Factorize code that sets default values for some options
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index a3672066..ce5d7074 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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