Re: Midnight commander parse errors
On Wed, 08 Jun 2011 20:43:41 +0200
Sven Joachim <svenjoac@gmx.de> wrote:
> On 2011-06-08 19:51 +0200, Brian wrote:
>
> > On Wed 08 Jun 2011 at 11:58:42 -0400, Frank McCormick wrote:
> >
> >>
> >> Am I the only one still seeing Midnight Commander parse errors when
> >> trying to look inside deb files ? This has been going on , in my case
> >> for two months now. Is there a solution ?
> >
> > It's the time to use ar -x. Or be patient.
>
> Nah, neither. This is free software after all…
>
> > http://www.midnight-commander.org/ticket/2552
>
> …and there's even a patch available! The bug is in a perl script
> (/usr/lib/mc/extfs.d/deb) that you can edit directly if you don't care
> about debsums complaining:
>
> --8<---------------cut here---------------start------------->8---
> --- deb.orig 2010-09-08 00:00:00.000000000 +0200
> +++ deb 2011-05-10 15:46:07.000000000 +0200
> @@ -46,7 +46,7 @@
> {
> while(<PIPEIN>)
> {
> - split;
> + @_ = split;
>
> $perm=$_[0]; $owgr=$_[1]; $size=$_[2];
> if($_[3] =~ /^\d\d\d\d\-/) { # New tar format
> @@ -100,7 +100,7 @@
> {
> while(<PIPEIN>)
> {
> - split;
> + @_ = split;
> $size=$_[0];
> last if $size =~ /:/;
> next if $size !~ /\d+/;
> --8<---------------cut here---------------end--------------->8---
>
> Rebuilding the package is of course cleaner, but I was too lazy to
> do that.
I was too lazy even to use patch. I edited the file directly. It
works! Thanks
--
-- Frank --
Reply to: