summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-08-19 12:44:12 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-08-19 12:44:12 +0000
commit4270bfd63dda298a7b2137183e025c231c306d1d (patch)
tree0d999eed783165f6902ea4099f6602f083c8c1cb
parent84df81bef37f4b5b30dded06279f7578095cc5ea (diff)
downloadperl-MDV-Distribconf-4270bfd63dda298a7b2137183e025c231c306d1d.tar
perl-MDV-Distribconf-4270bfd63dda298a7b2137183e025c231c306d1d.tar.gz
perl-MDV-Distribconf-4270bfd63dda298a7b2137183e025c231c306d1d.tar.bz2
perl-MDV-Distribconf-4270bfd63dda298a7b2137183e025c231c306d1d.tar.xz
perl-MDV-Distribconf-4270bfd63dda298a7b2137183e025c231c306d1d.zip
- fix typo
-rw-r--r--lib/MDV/Distribconf/MediaCFG.pm16
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.