Problem with *.zip archives

Joachim Breitner nomeata at debian.org
Sat Mar 29 21:48:35 UTC 2014


Hi,

Am Mittwoch, den 26.03.2014, 17:01 +0100 schrieb Andreas Tille:
> On Wed, Mar 26, 2014 at 04:06:51PM +0100, Joachim Breitner wrote:
> > Am Mittwoch, den 26.03.2014, 09:24 +0100 schrieb Andreas Tille:
> > > > $ perl -MDpkg::Compression -e 'print compression_guess_from_filename("foo.tgz")'
> > > > $ perl -MDpkg::Compression -e 'print compression_guess_from_filename("foo.tar.gz")'
> > > > gzip
> > > > 
> > > > compression_guess_from_filename() only groks files that end in .gz,
> > > > .bz2, .lzma, and .xz.  I can see if dpkg is receptive to a patch to also
> > > > understand .tgz, .tbz2, etc. but this will need to be fixed in the
> > > > interim.
> > > 
> > > I'd regard this as the wrong approach to use the extension as the way to
> > > decide about the compression.  Please (at least as fallback!) use the
> > > (perl equivalent of) file to find out the real compression method.
> > 
> > I was trying to stay close to the original implementation, but you are
> > of course right, a call to "file" (or a library equivalent) should be
> > used here.
> 
> :-)

Done, added compression_guess_from_file to Devscripts::Compression.
Potentially this should be moved to Dpkg::Compression, that’s up to the
devscripts developers.
 
> > Also I’m beginning to think that we should have a "prepare-orig-tar"
> > command (with a good name to be found) that has the repack, exclude and
> > rename functionality; it is useful independent of uscan (I might get my
> > tarballs by some other means).
> 
> ... like fetched from VCS in a get-orig-source target.  Yes, I'm all for
> it.  This would be helpful.

If I get a second second,  preferably from a devscripts admin, I can
work on it.

Am Samstag, den 22.03.2014, 12:15 +0100 schrieb Andreas Tille:
> BTW, I do not see any sense in having the original *.zip, a xz
> compressed tar.xz and the stripped +dfsg.orig.tar.xz.  IMHO the latter
> is fully sufficient and the intermediate result (.tar.xz) could go away.

Done.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20140329/c61ba9f0/attachment.sig>


More information about the devscripts-devel mailing list