On Mon, Jul 11, 2005 at 01:31:35PM +0200, Tollef Fog Heen wrote:
>apparently, dpkg-dev doesn't like unpacking packages with -0 as their
>revision part:
>
>: [EMAIL PROTECTED] /tmp > dpkg-source -x 
>/home/tfheen/external/nx/pkg-nx/nxcomp/nxcomp_1.4.0.2-31-0.dsc
>dpkg-source: error: unrecognised file suffix `-0.diff'
>: [EMAIL PROTECTED] /tmp >
>
>The patch in [EMAIL PROTECTED]/dpkg--devel--1.13--patch-1 (the arch
>archive is at http://arch.err.no/[EMAIL PROTECTED] ) fixes this
>problem.

Rather than setting $revision to undef, a simpler patch would be:

--- /usr/bin/dpkg-source.orig   2005-06-28 23:22:33.000000000 +1000
+++ /usr/bin/dpkg-source        2005-08-17 11:13:01.447168312 +1000
@@ -571,7 +571,7 @@
            next;
        }
 
-       if ($revision and s/^-\Q$revision\E\b//) {
+       if (length $revision and s/^-\Q$revision\E\b//) {
            if (/^\.diff$/) {
                $difffile = $file;
                next;

--bod


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

Reply via email to