From 711d97ed625002f5fed1a3452ab7f549701b0a4a Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Mon, 31 Mar 2008 18:02:30 +0000 Subject: * removed a few definition of my. They caused in emtpy variables later * minor changes git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1711 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/vmware/OpenSLX/OSPlugin/vmware.pm | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm') diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm index 8222d8dd..00c54f7f 100644 --- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm +++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm @@ -179,20 +179,27 @@ sub installationPhase # variants because we do not know which on is selected on client level # (code depends on distro/version and vmware location) # for local ... other vm-installations (TODO: generate list) - @files = qw( local ); - foreach my $file (@files) { + @types = qw( local ); + foreach my $type (@type) { # location of the vmware stuff, "local" for directly installed # package (more sophisticated assignment might be needed ...) - if ( $file eq "local" ) { - my $vmpath = "/usr/lib/vmware"; - my $vmbin = "/usr/bin"; + if ( $type eq "local" ) { + $vmpath = "/usr/lib/vmware"; + $vmbin = "/usr/bin"; } - # if provided via another plugin (TODO: pathname not completely clear ...) + # if provided via another plugin + # -> why another plugin? Why should another plugin handle files + # for vmware? Do we have another plugin which writes files + # at the moment? + # -> we don't have a .../vmwareXXX/ folder => .../vmware/ + # (TODO: pathname not completely clear ... + # -> should be the one of the plugin) else { - my $vmpath = "/opt/openslx/plugin-repo/vmwareXXX/$file"; - my $vmbin = "$vmpath/bin"; + #my $vmpath = "/opt/openslx/plugin-repo/vmwareXXX/$type"; + $vmpath = "/opt/openslx/plugin-repo/vmware/$type"; + $vmbin = "$vmpath/bin"; } - my $runlevelScript = "$self->{'pluginRepositoryPath'}/vmware.$file"; + my $runlevelScript = "$self->{'pluginRepositoryPath'}/vmware.$type"; $self->_writeRunlevelScript($vmbin, $runlevelScript); } @@ -212,7 +219,7 @@ sub installationPhase exec "\$PREFIX"'/lib/wrapper-gtk24.sh' \ "\$PREFIX"'/lib' \ "\$PREFIX"'/bin/vmware' \ - "\$PREFIX"'/libconf' "$@" + "\$PREFIX"'/libconf' "\$@" End-of-Here spitFile("$self->{'pluginRepositoryPath'}/$file", $script); } @@ -235,6 +242,8 @@ sub removalPhase return; } +# shouldn't we make it a OpenSLX function and not just a vmware plugin +# function. oh, i forgot, we are talking about the vmware plugin... sub _writeRunlevelScript { my $self = shift; -- cgit v1.2.3-55-g7522