diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-10-14 01:56:45 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-10-14 01:56:45 +0000 |
commit | 228e9f101df598b634208de6e4b5690a8810f28b (patch) | |
tree | 6f35171ec5137e4cd9fb5bbe90974908f580c654 /urpm/cfg.pm | |
parent | f33357eec411ff5efba41219aba451ee30e5fefb (diff) | |
download | urpmi-228e9f101df598b634208de6e4b5690a8810f28b.tar urpmi-228e9f101df598b634208de6e4b5690a8810f28b.tar.gz urpmi-228e9f101df598b634208de6e4b5690a8810f28b.tar.bz2 urpmi-228e9f101df598b634208de6e4b5690a8810f28b.tar.xz urpmi-228e9f101df598b634208de6e4b5690a8810f28b.zip |
Implement a new option, --norebuild, to urpmi, urpmi.update and urpmi.addmedia.
It prevents rebuilding the hdlist from the headers of the RPMs for a local
media. It's also settable globally in the urpmi.cfg file. Comes with doc.
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r-- | urpm/cfg.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm index 3d5b123a..d6c48d6a 100644 --- a/urpm/cfg.pm +++ b/urpm/cfg.pm @@ -105,6 +105,7 @@ sub load_config ($) { #- boolean options if (($no, $k, $v) = /^(no-)?( verify-rpm + |norebuild |fuzzy |allow-(?:force|nodeps) |(?:pre|post)-clean @@ -116,6 +117,7 @@ sub load_config ($) { ) { my $yes = $no ? 0 : 1; $no = $yes ? 0 : 1; + $v = '' unless defined $v; $config{$medium}{$k} = $v =~ /^(yes|on|1|)$/i ? $yes : $no; next; } |