summaryrefslogtreecommitdiffstats
path: root/src/os-plugins
diff options
context:
space:
mode:
authorSebastian Schmelzer2012-03-22 14:19:45 +0100
committerSebastian Schmelzer2012-03-22 14:19:45 +0100
commit4deb3687d8c94cc470e01a9580d69be1b0edc822 (patch)
tree125a3c58e5bb00bf60bd3b910a493a8c216d03fe /src/os-plugins
parentadd warnings for unsupported distro-functions in suse 12.1 (diff)
downloadcore-4deb3687d8c94cc470e01a9580d69be1b0edc822.tar.gz
core-4deb3687d8c94cc470e01a9580d69be1b0edc822.tar.xz
core-4deb3687d8c94cc470e01a9580d69be1b0edc822.zip
vmplayer4 eula fix
Diffstat (limited to 'src/os-plugins')
-rw-r--r--src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index 980c7f68..abe83f5b 100644
--- a/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/src/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -649,6 +649,16 @@ sub _getVersion {
$vmversion = $1;
}
# else { TODO: errorhandling if file or string doesn't exist }
+
+ # with vmplayer greater than 4.x the previous method doesn't work anymore
+ # so we use strings tool to get at least the build number..
+ if ($vmbuildversion == '') {
+ $data = qx{strings $vmpath/bin/vmplayer};
+ if ($data =~ m{build-(\d+)}) {
+ $vmbuildversion = $1;
+ }
+ }
+
chomp($vmversion);
chomp($vmbuildversion);