From 39b8eca775908d6ecab0421d1383b8c1407f27e0 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 12 Apr 2005 08:48:18 +0000 Subject: Make urpmi correctly remember the "noreconfigure" option. Introduce code for a boolean option "static" --- urpm/cfg.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') 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"; -- cgit v1.2.1