diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-25 13:29:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-25 13:29:08 +0000 |
commit | f5e1b2bead82e13ccacbd38aee147d3db0e28f52 (patch) | |
tree | 17170fcdac2a17cc17a336b15dbff34b6c5eaf52 /lib/MDV | |
parent | c50045a30909b45a45cf5efa5db02fb347bc84f4 (diff) | |
download | control-center-f5e1b2bead82e13ccacbd38aee147d3db0e28f52.tar control-center-f5e1b2bead82e13ccacbd38aee147d3db0e28f52.tar.gz control-center-f5e1b2bead82e13ccacbd38aee147d3db0e28f52.tar.bz2 control-center-f5e1b2bead82e13ccacbd38aee147d3db0e28f52.tar.xz control-center-f5e1b2bead82e13ccacbd38aee147d3db0e28f52.zip |
only retrieve the numerical version number (else we got "(foobar)" in
arguments which the shell does not like)
Diffstat (limited to 'lib/MDV')
-rwxr-xr-x | lib/MDV/Control_Center.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDV/Control_Center.pm b/lib/MDV/Control_Center.pm index 2038688f..8c984388 100755 --- a/lib/MDV/Control_Center.pm +++ b/lib/MDV/Control_Center.pm @@ -34,7 +34,7 @@ our @EXPORT = qw( $version ); -our ($version) = `cat /etc/mandrakelinux-release` =~ /\b(\d+\.{1}.+\))/; +our ($version) = `cat /etc/mandrakelinux-release` =~ /\b(\d+\.\d+)/; #------------------------------------------------------------- |