From: <Wil...@nt...> - 2005-08-22 10:55:27
|
Author: WillNorris Date: 2005-08-22 17:24:53 -0700 (Mon, 22 Aug 2005) New Revision: 6125 Modified: twiki/branches/DEVELOP/test/tinderbox/report-test.pl Log: Item182: fixed hardcoded cpan lib path to the one located in $TWIKIDEV/CPAN Modified: twiki/branches/DEVELOP/test/tinderbox/report-test.pl =================================================================== --- twiki/branches/DEVELOP/test/tinderbox/report-test.pl 2005-08-22 23:34:58 UTC (rev 6124) +++ twiki/branches/DEVELOP/test/tinderbox/report-test.pl 2005-08-23 00:24:53 UTC (rev 6125) @@ -5,7 +5,11 @@ use Data::Dumper qw( Dumper ); BEGIN { - my $cpan = '/home/wbniv/tinderbox.wbniv.wikihosting.com/cgi-bin/lib/CPAN/'; + $TWIKIDEV = $ENV{TWIKIDEV}; + die "must set environment variable TWIKIDEV" unless $TWIKIDEV; + + my $cpan = "$TWIKIDEV/CPAN/"; + die "no cpan directory [$cpan]" unless -d $cpan; my @localLibs = ( "$cpan/lib", "$cpan/lib/arch" ); unshift @INC, @localLibs; } |