summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-11-09 13:46:44 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-11-09 13:46:44 +0000
commit123f0f08b6a1060ac5422a6acca434e505007398 (patch)
tree222d7bb66c524cb0a271c0a35406c1da1c3e8f62 /lib
parente42608ef50db815cae66d6ef2ee02df4c0e140d7 (diff)
downloadperl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar
perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar.gz
perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar.bz2
perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar.xz
perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.zip
- for path build from media name, always replace space by '_' even media name is set
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Distribconf.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm
index 5dbaa12..21c2057 100644
--- a/lib/MDV/Distribconf.pm
+++ b/lib/MDV/Distribconf.pm
@@ -440,6 +440,9 @@ sub getvalue {
/^synthesis$/ and $default = 'synthesis.' . lc($distrib->getvalue($media, 'hdlist', $level));
/^hdlist$/ and $default = 'hdlist_' . lc($distrib->getvalue($media, 'name', $level)) . '.cz';
/^pubkey$/ and $default = 'pubkey_' . lc($distrib->getvalue($media, 'name', $level));
+ /^(pubkey|hdlist|synthesis)$/ and do {
+ $default =~ s![/ ]+!_!g;
+ };
/^name$/ and do {
$default = $media;
$default =~ s![/ ]+!_!g;