Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 4118
Status: resolved
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: simon.lockhart [...] bbc.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.05
Fixed in: (no value)



Subject: $tar->write() broken
Using $tar->write to return a string with the tar data, it doesn't pad the data to the blocksize, but it does if you user write() to write to a file
Date: Thu, 16 Oct 2003 10:34:02 +0200
Subject: Re: [cpan #4118] $tar->write() broken
From: "Jos I. Boumans" <kane [...] dwim.org>
To: bug-Archive-Tar [...] rt.cpan.org
RT-Send-Cc:
On Wednesday, October 15, 2003, at 11:13 PM, Guest via RT wrote: Show quoted text
> Using $tar->write to return a string with the tar data, it doesn't pad > the data to the blocksize, but it does if you user write() to write to > a file
you are right... i have fixed this in the development branch, and the fix will be in 1.07, which should be released shortly. If you need the patch right now, find it below the signature. -- Jos Boumans "You know you are never more indignant in life than when you're shopping at a store you feel is beneath you and one of the other customers mistakes you for one of the employees of that store." - Dennis Miller CPANPLUS http://cpanplus.sf.net ==== //member/kane/archive-tar-new/lib/Archive/Tar.pm#44 (text) ==== 730c730,732 < push @rv, $entry->data if $entry->has_content; --- Show quoted text
> push @rv, $entry->data if
$entry->has_content; Show quoted text
> push @rv, TAR_PAD->( $entry->size ) if
$entry->has_content && Show quoted text
> $entry->size
% BLOCK; 741c743,745 < push @rv, $entry->data if $entry->has_content; --- Show quoted text
> push @rv, $entry->data if
$entry->has_content; Show quoted text
> push @rv, TAR_PAD->( $entry->size ) if
$entry->has_content && Show quoted text
> $entry->size %
BLOCK;