tag 621763 + patch
thanks

On Fri, 08 Apr 2011, Otto Visser wrote:
> dpkg-deb (subprocess): short read on buffer copy for failed to write to
> pipe in copy
> dpkg-deb: error: subprocess paste returned error exit status 2
> dpkg: error processing
> /local/downloads/skype-debian_2.2.0.25-1_amd64.deb (--install):
>  short read on buffer copy for backend dpkg-deb during
>  `./usr/share/skype/lang/skype_ja.qm'
>  Processing triggers for desktop-file-utils ...
>  Errors were encountered while processing:
>   /local/downloads/skype-debian_2.2.0.25-1_amd64.deb
> 
> The sentence "short read on buffer copy for failed to write to 
> pipe in copy" is a bit hard to parse... My guess here is that 'for'
> should have been 'or'?

No, actually the part "failed to write to pipe in copy" is wrong, it's
supposed to be an action description and not a complete error message.
That's because the actuel error message is constructed from 2 separate
strings.

Anyway, I have always found those error messages very hard to grasp
and badly worded. I took this opportunity to improve all those that
are related to buffer_copy().

Attached is a patch. Reviews welcome (including from translators since I
quite some strings).

With my patch, your error message would have been:
dpkg-deb (subprocess): unexpected end of input while copying ar member 
'data.tar' from '/local/downloads/skype-debian_2.2.0.25-1_amd64.deb' to 
decompressor

At least you have a chance to guess that your .deb file was truncated and
is not complete.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)



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

Reply via email to