summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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;