diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Distribconf/MediaCFG.pm | 16 |
1 files 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. |