Specifically:
* Properly dereference the variable when looking for the stunt
dir to be there already
* Do not add "." to the path if the path starts out empty.
* Crash _with the right message_ in dpkg-parsechangelog if PERLLIB is
unset. (PERLLIB mustn't be unset because we're trying to strip
our own value from it.)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Provide better log output for certain failures.
* Many new tests (especially for new functionality).
* Add missing debhelper (>=8) to test suite's global Depends.
+ * tstunt arrangements: Fix mishandling of PERLLIB, etc.
--
local var=$1
local tstunt=$2
eval '
- case "'$var'" in
+ case "$'$var'" in
"$tstunt:"*) ;;
*":$tstunt:"*) ;;
+ "") '$var'="$tstunt" ;;
*) '$var'="$tstunt:$'$var'" ;;
esac
+ export '$var'
'
}
foreach my $k (qw(PATH PERLLIB)) {
my @opath = defined $ENV{$k} ? split /\:/, $ENV{$k} : ();
my @npath = grep { $_ ne $strip } @opath;
- @npath != @opath or die "$0 $k $ENV{$k} ?";
+ @npath != @opath or die "$0 $k ".($ENV{$k}//"(undef)")." ?";
$ENV{$k} = join ':', @npath;
}
die if $ENV{'DGIT_NO_TSTUNT_CLPARSE'}++;