summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastian Schmelzer2009-06-06 00:22:56 +0200
committerSebastian Schmelzer2009-06-06 00:22:56 +0200
commit3a186d91c52b9b43e5056f20d5f31b7932b894f2 (patch)
tree98950a7d3b25acce7c5c67d36f7f6062d26fc39e /lib
parentbind all required perl includes to chrooted system (diff)
downloadcore-3a186d91c52b9b43e5056f20d5f31b7932b894f2.tar.gz
core-3a186d91c52b9b43e5056f20d5f31b7932b894f2.tar.xz
core-3a186d91c52b9b43e5056f20d5f31b7932b894f2.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/OpenSLX/DistroUtils/Engine.pm15
1 files changed, 2 insertions, 13 deletions
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;