summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-25 13:29:08 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-25 13:29:08 +0000
commitf5e1b2bead82e13ccacbd38aee147d3db0e28f52 (patch)
tree17170fcdac2a17cc17a336b15dbff34b6c5eaf52 /lib
parentc50045a30909b45a45cf5efa5db02fb347bc84f4 (diff)
downloadcontrol-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')
-rwxr-xr-xlib/MDV/Control_Center.pm2
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+)/;
#-------------------------------------------------------------