summaryrefslogtreecommitdiffstats
path: root/urpm/cfg.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-12 08:48:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-12 08:48:18 +0000
commit39b8eca775908d6ecab0421d1383b8c1407f27e0 (patch)
tree0b87ea7a7ccb2681eb62660cf967cd88614b96a2 /urpm/cfg.pm
parent1860451d7799f2f5856c2965505e761c87dd2d90 (diff)
downloadurpmi-39b8eca775908d6ecab0421d1383b8c1407f27e0.tar
urpmi-39b8eca775908d6ecab0421d1383b8c1407f27e0.tar.gz
urpmi-39b8eca775908d6ecab0421d1383b8c1407f27e0.tar.bz2
urpmi-39b8eca775908d6ecab0421d1383b8c1407f27e0.tar.xz
urpmi-39b8eca775908d6ecab0421d1383b8c1407f27e0.zip
Make urpmi correctly remember the "noreconfigure" option. Introduce code
for a boolean option "static"
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r--urpm/cfg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index de4f641c..02f1f57e 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -154,7 +154,7 @@ sub load_config ($;$) {
/^key[-_]ids\s*:\s*['"]?(.*?)['"]?$/
and $config{$medium}{'key-ids'} = $1, next;
#- positive flags
- /^(update|ignore|synthesis|virtual|noreconfigure)$/
+ /^(update|ignore|synthesis|noreconfigure|static|virtual)$/
and $config{$medium}{$1} = 1, next;
my ($no, $k, $v);
#- boolean options
@@ -205,7 +205,7 @@ sub dump_config ($$) {
print $f "{\n";
}
foreach (sort grep { $_ && $_ ne 'url' } keys %{$config->{$m}}) {
- if (/^(update|ignore|synthesis|virtual)$/) {
+ if (/^(update|ignore|synthesis|noreconfigure|static|virtual)$/) {
print $f " $_\n";
} elsif ($_ ne 'priority') {
print $f " $_: " . substitute_back($config->{$m}{$_}, $config_old->{$m}{$_}) . "\n";