From 4270bfd63dda298a7b2137183e025c231c306d1d Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sat, 19 Aug 2006 12:44:12 +0000 Subject: - fix typo --- lib/MDV/Distribconf/MediaCFG.pm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/MDV/Distribconf/MediaCFG.pm b/lib/MDV/Distribconf/MediaCFG.pm index 0566f3c..47d1dff 100644 --- a/lib/MDV/Distribconf/MediaCFG.pm +++ b/lib/MDV/Distribconf/MediaCFG.pm @@ -23,6 +23,18 @@ my $value = {}; This value can only be set into 'media_info' section. +=cut + +$value->{mediacfg_version} = { + validation => sub { + my ($val) = @_; + if ($val !~ /^(\d|.)+$/) { + return ("should be a number"); + } + return (); + }, +}; + =head3 mediacfg_version The version of the media_cfg @@ -99,9 +111,9 @@ the list of media holding binaries rpms build by srpms from this media. =cut -$value->{debugfor} = {}; +$value->{debug_for} = {}; -=head3 debugfor +=head3 debug_for If the media contain debug rpms, it contain the list of media for which rpms are debug rpms. -- cgit v1.2.1