diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2006-08-21 12:02:49 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2006-08-21 12:02:49 +0000 |
commit | c865de9fedd68c738257b01e6c5f33fa4c387eb0 (patch) | |
tree | 511f16aef6ba74d0f692aa23bfb1e146cab2314b /lib | |
parent | 59d7c0ae9a7760416619446dea7563d2f7110867 (diff) | |
download | perl-MDV-Distribconf-c865de9fedd68c738257b01e6c5f33fa4c387eb0.tar perl-MDV-Distribconf-c865de9fedd68c738257b01e6c5f33fa4c387eb0.tar.gz perl-MDV-Distribconf-c865de9fedd68c738257b01e6c5f33fa4c387eb0.tar.bz2 perl-MDV-Distribconf-c865de9fedd68c738257b01e6c5f33fa4c387eb0.tar.xz perl-MDV-Distribconf-c865de9fedd68c738257b01e6c5f33fa4c387eb0.zip |
- fix version to please CPAN
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Distribconf/MediaCFG.pm | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/lib/MDV/Distribconf/MediaCFG.pm b/lib/MDV/Distribconf/MediaCFG.pm index 47d1dff..1f7383a 100644 --- a/lib/MDV/Distribconf/MediaCFG.pm +++ b/lib/MDV/Distribconf/MediaCFG.pm @@ -2,8 +2,11 @@ package MDV::Distribconf::MediaCFG; use strict; use warnings; +use MDV::Distribconf; -our $VERSION = (qq$Revision$ =~ /(\d+)/)[0]; +our $VERSION = + (qq$Revision$ =~ /(\d+)/)[0] . '.' . + MDV::Distribconf::mymediacfg_version(); =head1 NAME @@ -13,6 +16,39 @@ MDV::Distribconf::MediaCFG This module provide documenation of know value in media.cfg +=head1 MEDIACFG VERSION + +The media.cfg version is given by the 'mediacfg_version' in 'media_info'. +This value should be set is you want to use new features that can change the +behavior of this module. + +=head2 1 + +This is the default and the first version of mediacfg format. + +=head2 2 + +Since this version, all media path are relative to the media_info path. +Before, media was relative to media_info except media with / relative to +the root of the distrib. + +=head2 3 + +This version allow to include in value variable in form of refering to +other value set in the file: + +=over 4 + +=item ${...} + +refer to a global value (distribution version, arch...) + +=item %{...} + +refer to a value proper to the media (name, ...) + +=back + =head1 VALUE =cut @@ -39,7 +75,7 @@ $value->{mediacfg_version} = { The version of the media_cfg -See L<MDV::Distribconf> for more detail about it +See L<MEDIACFG VERSION> =cut @@ -182,3 +218,6 @@ sub _value_info { } 1; + +__END__ + |