diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Distribconf.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm index 560ae19..bab6a76 100644 --- a/lib/MDV/Distribconf.pm +++ b/lib/MDV/Distribconf.pm @@ -455,6 +455,18 @@ sub getvalue { and do { $default = $_; last }; /^(?:tag|branch)$/ and do { $default = ''; last }; /^(?:media|info)dir$/ and do { $default = $distrib->{$var}; last }; + /^os$/ and do { $default = 'linux'; last; }; + /^gnu$/ and do { $default = 1; last; }; + /^vendor$/ and do { $default = 'mandriva'; last; }; + /^platform$/ and do { + $default = sprintf('%s-%s-%s%s', + $distrib->getvalue($media, 'arch'), + $distrib->getvalue($media, 'vendor'), + $distrib->getvalue($media, 'os'), + $distrib->getvalue($media, 'gnu') ? '-gnu' : '', + ); + last; + }; } return $distrib->_expand($media, $distrib->{cfg}->val($media, $var, $default), $level); } |