diff options
Diffstat (limited to 'lib/OpenSLX/DistroUtils/Engine.pm')
-rw-r--r-- | lib/OpenSLX/DistroUtils/Engine.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/OpenSLX/DistroUtils/Engine.pm b/lib/OpenSLX/DistroUtils/Engine.pm index 88a1f166..839e6564 100644 --- a/lib/OpenSLX/DistroUtils/Engine.pm +++ b/lib/OpenSLX/DistroUtils/Engine.pm @@ -14,6 +14,7 @@ package OpenSLX::DistroUtils::Engine; use OpenSLX::Basics; +use Data::Dumper; use strict; use warnings; @@ -35,11 +36,13 @@ sub loadDistro { my $pathToClass = "$openslxConfig{'base-path'}/lib"; my $flags = {}; - $flags->{incPaths} = [ $pathToClass, "/mnt/$pathToClass" ]; + #$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); return 0 if !$distro; # module does not exist, try next @@ -57,9 +60,10 @@ sub loadDistro { if (!$loaded) { vlog(1, "failed to load DistroUtils!"); + vlog(1, $distroName); } return $distro; } -1;
\ No newline at end of file +1; |