[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "Cannot represent change" error upon PNG file addition



On Thu, 09 Dec 2004, Christoph Berg wrote:
> Re: Nick Lewycky in <[🔎] 41B76EF8.20603@mxc.ca>
> > >--- /usr/bin/dpkg-source        2004-11-11 21:15:52.000000000 +0100
> > >+++ /home/ifi/bin/dpkg-source   2004-12-08 14:45:00.000000000 +0100
> > >@@ -406,7 +406,7 @@
> > >                    $ENV{'LC_ALL'}= 'C';
> > >                    $ENV{'LANG'}= 'C';
> > >                    $ENV{'TZ'}= 'UTC0';
> > >-                    exec('diff','-u',
> > >+                    exec('diff','-au',
> > 
> > That's terrifying. I just tried diff -a on two PNG files and it worked 
> > just fine. But will it always work?
> 
> This breaks your package for all people that are not using a patched
> dpkg-source. They can't unpack/pack it. Don't do it.

They can unpack it, but they won't be able to pack it.

But that's besides the point. I'm personally interested in other valid
reasons to avoid using diff -au; since I personally haven't seen any
reason to avoid using this option yet.

In the meantime, we can still use uuencode|decode to deal with this
sort of thing while the patched dpkg-source gains acceptance.


Don Armstrong

-- 
If it jams, force it. If it breaks, it needed replacing anyway.
 -- Lowery's Law

http://www.donarmstrong.com              http://rzlab.ucr.edu



Reply to: