Adds option -C to allow archives created with ptar to be uploaded to PAUSE in case of Windows or world +w permissions on unix.

When you pass a filehandle to Archive::Tar::write() or create_archive(), it closes the filehandle after writing to it. I think it makes more sense not to close a handle that A::T didn't open, since the application may need to write additional data to it. (Consider sockets, package files containing encapsulated tar archives, etc.)

Example

$ perl -e 'use Archive::Tar; open(PKG, ">mypkg") or die "open: $!"; my $tar = Archive::Tar->new; $tar->add_data("foo.txt","hello"); $tar->write(\*PKG); print PKG "more data" or die "print: $!";' print: Bad file descriptor at -e line 1.

As seen in [rt.cpan.org #48879], although the recommended way of retrieving the last error is to use an instance method ($tar->error), the returned value is effectively global: an error in one Archive::Tar instance changes the error string of another instance.

This change separates the error strings from each other while keeping the (deprecated) global value of $Archive::Tar::error pointing to the last error regardless of its instance.

We also support calling error() as a class method (Archive::Tar->error). In this case it returns the global value, which matches the old behaviour.

http://www.nntp.perl.org/group/perl.cpan.testers/2008/08/msg2083310.html

Mailed the author to find a less fragile solution, but for now we require all the individual modules, and all at the same version.

This release holds only bugfixes.
- Make list_files() also return full_path() rather than name(),

as that would ignore the prefix field. This was found to break PPM (bug #8537)

This release holds only bugfixes.
- Make the size of symlinks be 0 in tar headers, so the next entry

is not interpreted as contents of the symlink (bug #7937) - Strip high bits from the mode of the file, as they are stored

differently in the tar header
- Make Archive::Tar be kinder to archives that contain garbage,

proceeding anyway as long as that's possible.

This release holds mostly bugfixes, in the form of a rewrite of the handling of the 'prefix' header field. - Rewrote 02_methods.t to be more independant - Rewrote the way 'prefix' headers are dealt with - Require IO::String now to do archive stringification - Add new method 'full_path' to A::T::Item objects

This release holds some bugfixes and also the return of bin/ptar - Make new() comply with the documentation and return undef on

a read() failure.
- Re-adds bin/ptar, which disappeared from this distribution after

0.22 (sorry about that).
- Makes 'IO::Zlib' a default prerequisite. You can still disable

this by supplying the -n option to 'perl Makefile.PL'.

This release holds some bugfixes and extra tests over the 1.07 release: - Fix a file renaming bug that forgot to carry over path info - Fix a bug where adding dirs on win32 gave 'permission denied' - Fix some documentation typos
- Add extra tests explicilty for Archive::Tar::File - Move completely from FileHandle to IO::File

This release holds some bugfixes over the 1.06 release: - Quell some annoying warnings about binmode on unopened filehandles - Add tests for binary files included in a tarball

This release holds some bugfixes and new features over the 1.05 release. - The chown() code somehow didn't make it into the 1.05 release - Patch gethandle() to treat all IO::File handles as binary.

This should make win32 users happy

New feature added:
- A method called 'contains_file' that will tell you if a certain file

is already in the archive.

This release holds some bugfixes and new features over the 1.04 release. - The Test::Harness that came with perl 5.6.0 was buggy, require

a higher version in the Makefile.PL - Add a global variable $CHOWN that controls whether Archive::Tar

should attempt to chown() files or not when it can.

This release hold a bugfix over the 1.03 release: - NULL-byte padding was done also on files that had no real content,

like symlinks, thus ending up with a number of bytes not dividable by 512.

This release holds some bugfixes over the 1.02 release, mainly these: - Always do a readlink on the full path, never just the file - Make Archive::Tar write proper headers when dealing with symlinks

For this $Archive::Tar::FOLLOW_SYMLINKS is introduced

This release holds some bugfixes over the 1.01 release, mainly these: - Silly thinko fix in File.pm
- Quell some warnings if files are empty - The cache of previously added files was not being emptied

Also, some new features are added:

This release holds some bugfixes over the 1.00 release, mainly these:

Some new features/changes:

This release marks the new development track as 'stable'. Version got upped to '1.00'. Not many changes, merely lots of successful test reports constitute this version. However, a tiny fix regarding the reserved string 'VERSION' has been applied, as well as a few more FAQ entries have been added.

This release only entails a bug fix on 0.99_05 -- C<extract_archive> was dealing wrongly with special files such as hardlinks etc. This is now fixed.

Apparently windows has some issues with long path names. This version introduces an adapted test suite for Win32 machines.

Make Archive::Tar work happily on perl 5.005_03

This release only has bug fixes on 0.99_02.

Fixed handling of long file names when extracting with C<extract_archive>

Fixed handling of prefixes in tar headers that contain regex metacharacters.

Fixed a few spurious warnings about comparing non-numbers.

Expanded the test cases accordingly.

Added options to be passed to read, namely:

Implemented the '././@LongLink' support, which is GNU's way of dealing with filenames that are longer than 255 chars.

Added a global variable $WARN which controls whether warnings get printed or just stored.

Fixed a few small bugs that considered files named '0' or '' to not really be files and refuse to package them.

Total rewrite from the ground up. Removed as many as the nasty bits (no pun intended) as possible and tucked them away. No code from the old distribution remains.

Cleaned up the API, introduced clean error handling and just generally removed a lot of cruft.

Note that Archive::Tar now requires perl version 5.005_03 or higher to run.

Introduced 2 new submodules:
Archive::Tar::Constant

Simply holds all constants, like block length, tar headers etc

Archive::Tar::File

Object class for all files in a tar archive, to make for easier manipulataion of the archive in-memory. See perldoc Archive::Tar::File after installation.

Added a few features:
write() now takes an optional 3rd paramater (prefix) which will allow you to tuck away all files in that sub directory.

rename() is introduced, allowing for easy renaming of files in the archive.

get_files() returns a file of all Archive::Tar::File objects in the current read-in archive.

Bundled 0.072 and 0.22 to be able to work on Win32 and non-Win32 platforms. Since the previous version is almost 3 years old, bundling seemed like the quickest way to get a working solution again.

Archive::Tar now transparently Does The Right Thing depending what platform you are on -- Win32 users, read the Archive::Tar::Win32 documentation!

I also suppose this makes me the new maintainer...

New class methods create_archive, extract_archive & list_archive.

Archive::Tar no longer keeps the entire archive in memory after reading it. This results in a major reduction in memory consumption.

Added suport for character & block special files. These files are currently created using mknod, so they will only be available on UNIX platforms.

See the file ChangeLog for more complete details.

Fixed (again) the MacOS support and included alpha support for block/character special files as well as improving symlink handling.

NOTE: Archive::Tar is undergoing major work to extend the interface and lower memory consumpton. Any changes to the existing interface should be extensions only.

Fixes a problem with systems that don't like open files being deleted. It also has an explicit copyright notice so folks like Debian can redistribute it in peace, and an new custodial maintainer due to Calle's suffering Carpal Tunnel Syndrome.

Get better soon, Calle!

It fixes a bunch of bugs, implements POSIX-style long pathnames and adds a couple of useful methods. It has also been verified to work on Win32.

This version also includes a small tar-lookalike program, ptar. There is no documentation beyond a usage message, but if you've ever used at Unix-style tar program it should be very familiar.