summaryrefslogtreecommitdiffstats
path: root/urpm/cfg.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-21 14:19:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-21 14:19:21 +0000
commit94812055eb7353778b330e3ac057cb322cdc54b3 (patch)
tree984f0f4426e7dbd40df4ba89e16568c275bd27cd /urpm/cfg.pm
parent929fa7966aa8b0a619fd50858d51966be2acf2d9 (diff)
downloadurpmi-94812055eb7353778b330e3ac057cb322cdc54b3.tar
urpmi-94812055eb7353778b330e3ac057cb322cdc54b3.tar.gz
urpmi-94812055eb7353778b330e3ac057cb322cdc54b3.tar.bz2
urpmi-94812055eb7353778b330e3ac057cb322cdc54b3.tar.xz
urpmi-94812055eb7353778b330e3ac057cb322cdc54b3.zip
rename conf_file__rel_media into with-dir
(since it will be used in urpmi.cfg too, it needs a less verbose name)
Diffstat (limited to 'urpm/cfg.pm')
-rw-r--r--urpm/cfg.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index 634a188d..03175d5f 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -264,7 +264,7 @@ sub load_ini_config_file_raw {
$v = expand_line($v) if !$b_norewrite;
$_ => $v;
} $cfg->Parameters($section);
- { conf_file__rel_media => $section, %h };
+ { 'with-dir' => $section, %h };
} $cfg->Sections ];
}
@@ -293,8 +293,8 @@ sub write_ini_config {
foreach (@$blocks) {
my %h = %$_;
- my $section = delete $h{conf_file__rel_media} || '_';
- $uniq{$section}++ or die "conflicting conf_file__rel_media value\n";
+ my $section = delete $h{'with-dir'} || '_';
+ $uniq{$section}++ or die "conflicting with-dir value\n";
foreach (difference2([ $cfg->Parameters($section) ], [ keys %h ])) {
# remove those options which are no more wanted