From 3a186d91c52b9b43e5056f20d5f31b7932b894f2 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Fri, 5 Jun 2009 22:22:56 +0000 Subject: remove debug code @INC manipulation moved to plugin engine (see #2939) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2940 95ad53e4-c205-0410-b2fa-d234c58c8868 --- lib/OpenSLX/DistroUtils/Engine.pm | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'lib') diff --git a/lib/OpenSLX/DistroUtils/Engine.pm b/lib/OpenSLX/DistroUtils/Engine.pm index 839e6564..16c3e585 100644 --- a/lib/OpenSLX/DistroUtils/Engine.pm +++ b/lib/OpenSLX/DistroUtils/Engine.pm @@ -14,7 +14,6 @@ package OpenSLX::DistroUtils::Engine; use OpenSLX::Basics; -use Data::Dumper; use strict; use warnings; @@ -34,17 +33,8 @@ sub loadDistro { my $distro; - my $pathToClass = "$openslxConfig{'base-path'}/lib"; - my $flags = {}; - #$flags->{incPaths} = [ $pathToClass, "/mnt/$pathToClass" ]; - # for the case we call this function inside the chrooted environment of a plugin's - # install method we add the corrected searchpath to INC - # TODO: fix this problem via plugin engine - - print 'DUMP INC 2'; - print Dumper(@INC); my $loaded = eval { - $distro = instantiateClass("OpenSLX::DistroUtils::${distroName}", $flags); + $distro = instantiateClass("OpenSLX::DistroUtils::${distroName}"); return 0 if !$distro; # module does not exist, try next 1; }; @@ -52,7 +42,7 @@ sub loadDistro { if (!$loaded) { vlog(1, "can't find distro specific class, try base class.."); $loaded = eval { - $distro = instantiateClass("OpenSLX::DistroUtils::Base", $flags); + $distro = instantiateClass("OpenSLX::DistroUtils::Base"); return 0 if !$distro; # module does not exist, try next 1; }; @@ -60,7 +50,6 @@ sub loadDistro { if (!$loaded) { vlog(1, "failed to load DistroUtils!"); - vlog(1, $distroName); } return $distro; -- cgit v1.2.3-55-g7522