aboutsummaryrefslogtreecommitdiffstats
path: root/Distribconf.pm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-02-21 13:11:01 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-02-21 13:11:01 +0000
commit901f6069b6ef0b46a3a91d463a69355be18fcc9b (patch)
tree5685f35434d939696fd75a11e9566bbf9160c2e2 /Distribconf.pm
parent98b9d42e9d9137b2308ea16de070b9d54b7a2591 (diff)
downloadrpmtools-901f6069b6ef0b46a3a91d463a69355be18fcc9b.tar
rpmtools-901f6069b6ef0b46a3a91d463a69355be18fcc9b.tar.gz
rpmtools-901f6069b6ef0b46a3a91d463a69355be18fcc9b.tar.bz2
rpmtools-901f6069b6ef0b46a3a91d463a69355be18fcc9b.tar.xz
rpmtools-901f6069b6ef0b46a3a91d463a69355be18fcc9b.zip
- lowercase media name in file name
- manage pubkey
Diffstat (limited to 'Distribconf.pm')
-rw-r--r--Distribconf.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Distribconf.pm b/Distribconf.pm
index b7e8884..3c31a75 100644
--- a/Distribconf.pm
+++ b/Distribconf.pm
@@ -375,8 +375,9 @@ sub getvalue {
my $default;
SWITCH: for ($var) {
- /^synthesis$/ and do { $default = 'synthesis.' . $distrib->getvalue($media, 'hdlist'); last; };
- /^hdlist$/ and do { $default = 'hdlist_' . $distrib->getvalue($media, 'name') . '.cz'; last; };
+ /^synthesis$/ and do { $default = 'synthesis.' . lc($distrib->getvalue($media, 'hdlist')); last; };
+ /^hdlist$/ and do { $default = 'hdlist_' . lc($distrib->getvalue($media, 'name')) . '.cz'; last; };
+ /^pubkey$/ and do { $default = 'pubkey_' . lc($distrib->getvalue($media, 'name')); last; };
/^name$/ and do { $default = $media; $default =~ s!/!_!g; last; };
/^path$/ and return $media;
/^root$/ and return $distrib->{root};
@@ -443,6 +444,10 @@ Thanks to Sylvie Terjan <erinmargault@mandrake.org> for the spell checking.
=head1 ChangeLog
$Log$
+ Revision 1.3 2005/02/21 13:11:01 othauvin
+ - lowercase media name in file name
+ - manage pubkey
+
Revision 1.2 2005/02/21 12:47:34 othauvin
- avoid error message about non existing media.cfg