From 43b0a766b91137b68fb8c044c8733c6d26ea0284 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Thu, 18 Sep 2008 16:10:11 +0000 Subject: * commented out unneded stuff. Could result in an error, even if everything would be fine git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2237 95ad53e4-c205-0410-b2fa-d234c58c8868 --- .../plugins/xserver/OpenSLX/OSPlugin/xserver.pm | 56 ++++++++++++---------- 1 file changed, 30 insertions(+), 26 deletions(-) (limited to 'os-plugins/plugins') diff --git a/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm b/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm index d3ed4514..71c02eb9 100644 --- a/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm +++ b/os-plugins/plugins/xserver/OpenSLX/OSPlugin/xserver.pm @@ -111,17 +111,19 @@ sub getAttrInfo # plugin specific attributes start here ... # stage1 - 'xserver::pkgpath' => { - applies_to_vendor_os => 0, - applies_to_vendor_os => 1, - description => unshiftHereDoc(<<' End-of-Here'), - Path to downloaded ATI or Nvidia package - End-of-Here - # TODO: - #content_regex => qr{^0|1$}, - content_descr => 'Path to Nvidia or ATI packages', - default => '/root/xserver-pkgs', - }, +# Currently we don't need it anymore. Perhaps in the future, thats +# why it's just commented out +# 'xserver::pkgpath' => { +# applies_to_vendor_os => 0, +# applies_to_vendor_os => 1, +# description => unshiftHereDoc(<<' End-of-Here'), +# Path to downloaded ATI or Nvidia package +# End-of-Here +# # TODO: +# #content_regex => qr{^0|1$}, +# content_descr => 'Path to Nvidia or ATI packages', +# default => '/root/xserver-pkgs', +# }, 'xserver::ati' => { applies_to_vendor_os => 1, description => unshiftHereDoc(<<' End-of-Here'), @@ -166,22 +168,24 @@ sub preInstallationPhase() $self->{attrs} = $info->{'plugin-attrs'}; $self->{vendorOsPath} = $info->{'vendor-os-path'}; - my $pkgpath = $self->{attrs}->{'xserver::pkgpath'}; - my $installAti = $self->{attrs}->{'xserver::ati'}; - my $installNvidia = $self->{attrs}->{'xserver::nvidia'}; +## Due of the fact that we download now our files we don't need this +## part anymore. Maybe in the future. Thats why it's just commented out +# my $pkgpath = $self->{attrs}->{'xserver::pkgpath'}; +# my $installAti = $self->{attrs}->{'xserver::ati'}; +# my $installNvidia = $self->{attrs}->{'xserver::nvidia'}; - if (! -d $pkgpath && ($installAti == 1 || $installNvidia == 1)) { - print "\n\n * xserver::pkgpath: no such directory!\n"; - print " * xserver plugin can't install ATI or Nvidia driver!\n\n"; - # exit 1 => xserver plugin is not getting installed because ati - # or nvidia where selected but are not installable! - exit 1; - } - - if (-d $pkgpath && ($installNvidia == 1 || $installAti == 1)) { - # Todo: use a openslx copy function! - system("cp -r $pkgpath $self->{pluginRepositoryPath}/packages"); - } +# if (! -d $pkgpath && ($installAti == 1 || $installNvidia == 1)) { +# print "\n\n * xserver::pkgpath: no such directory!\n"; +# print " * xserver plugin can't install ATI or Nvidia driver!\n\n"; +# # exit 1 => xserver plugin is not getting installed because ati +# # or nvidia where selected but are not installable! +# exit 1; +# } +# +# if (-d $pkgpath && ($installNvidia == 1 || $installAti == 1)) { +# # Todo: use a openslx copy function! +# system("cp -r $pkgpath $self->{pluginRepositoryPath}/packages"); +# } } -- cgit v1.2.3-55-g7522