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 \\$?';
        }
 }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to