in reply to Re^6: manipulating cpio archive
in thread manipulating cpio archive
I would asume that this is a bug in Archive::Cpio. The ->remove subroutine treats $archive->{list} as an array of strings (as do the examples), but it contains Archive::Cpio::File objects that don't seem to have stringification overload.
You'll likely need to rewrite the ->remove method to actually remove elements by their ->name (and raise a bug against the module, please).
The test suite only tests that the (main) module can be loaded and tests no functionality at all, so adding a test for ->remove wouldn't hurt either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: manipulating cpio archive
by momo33 (Beadle) on Jan 17, 2011 at 20:41 UTC | |
by momo33 (Beadle) on Jan 18, 2011 at 08:23 UTC | |
by Corion (Patriarch) on Jan 18, 2011 at 08:30 UTC | |
by momo33 (Beadle) on Jan 18, 2011 at 09:26 UTC | |
by Corion (Patriarch) on Jan 27, 2011 at 11:37 UTC |