Re: Interesting problem in timezoneconf package
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > my $temp="set -e\nset -- @ARGV\n" . << 'EOF';
> > if [ "$1" = "configure" ]; then
> > [ -x /usr/sbin/update-configlets ] && /usr/sbin/update-configlets
> > fi
> >
> > EOF
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> >
> > If /usr/sbin/update-configlets doesn't exist, the return code is then
> > 1, thus explaining failure.
>
> I always put 'exit 0' after #DEBHELPER# to prevent this problem.
I've had an impression that shell scripts won't go that far
if "set -e " was enabled. Thus, I've always thought " [ ] && xx" kind of
notation is mostly unusable, unless postfixed with a "|| true"
Or did I miss a some major point?
regards,
junichi
Reply to: