to, 2009-01-08 kello 22:12 +0100, Adeodato Simó kirjoitti: > Package: moreutils > Severity: wishlist > > Hello, > > Here's a suggestion for moreutils: a command that implements the > tarball-unpacking logic of dpkg-source. That is, it unpacks a tarball > into a named directory, but if the tarball unpacked to a single > directory, all its contents are moved one level up (and that root > directory rmdir'ed).
I haven't used it myself, but atool would seem to match this at a quick glance: Package: atool Depends: perl Description: A tool for managing file archives of various types atool is a script for managing file archives of various types (tar, tar+gzip, zip etc). The main command is probably aunpack, extracting files from an archive. It overcomes the dreaded "multiple files in archive root" problem by first extracting to a unique subdirectory, and then moving back the files if possible. aunpack also prevents local files from being overwritten by mistake. . Other commands provided are apack (create archives), als (list files in archives), and acat (extract files to standard out). Homepage: http://www.nongnu.org/atool/ Dato, does that do what you want? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org