Justin Pryzby wrote:
> tag 337664 patch
> thanks
> 
> On Wed, Mar 22, 2006 at 06:01:29PM -0500, pryzbyj wrote:
> > Perhaps you need to escape "$?" some more.  Checking
> > /var/lib/dpkg/info/ reveals an aweful number of || exit 0; fortunately
> > many scripts have only that debhelper snippet.
> The naive patch is included.  On cursory inspection it looks like this
> will work, but there may be unforseen use of this variable.
> 
> --- /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm       2006-03-22 
> 18:43:27.000000000 -0500
> +++ /tmp/Dh_Lib.pm    2006-03-22 18:43:40.000000000 -0500
> @@ -104,7 +104,7 @@
>       # If no error handling function was specified, just propigate
>       # errors out.
>       if (! exists $dh{ERROR_HANDLER} || ! defined $dh{ERROR_HANDLER}) {
> -             $dh{ERROR_HANDLER}='exit $?';
> +             $dh{ERROR_HANDLER}='exit \\$?';
>       }
>  }

I'm going to try to get a lintian check added to catch all of the
affected packages, and of course fix this ASAP in debhelper. Thanks.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to