Support tar.lzma

Bug #1567524 reported by Olivier - interfaSys
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Wishlist
Unassigned

Bug Description

It would be nice to support tar.lzma archives with the sources plugin.

Michael Vogt (mvo)
affects: snappy → snapcraft
Changed in snapcraft:
milestone: none → 2.9
status: New → Triaged
Kyle Fazzari (kyrofa)
Changed in snapcraft:
milestone: 2.9 → 2.10
Changed in snapcraft:
milestone: 2.10 → none
Changed in snapcraft:
importance: Undecided → Wishlist
Simon Quigley (tsimonq2)
Changed in snapcraft:
assignee: nobody → Simon Quigley (tsimonq2)
status: Triaged → In Progress
Revision history for this message
Simon Quigley (tsimonq2) wrote :

So while trying to fix this, here's what I found out.

I made an example .tar.lzma file with an appropriate snapcraft.yaml file, and surprisingly, it extracted and executed my test Makefile (in the .tar.lzma file) successfully. I tried this without Snapcraft and it shows the following when I run tar -xvf test.tar.lzma:

$ tar -xvf test.tar.lzma
tar: This does not look like a tar archive
test/
test/Makefile
tar: Exiting with failure status due to previous errors

It spits some errors but successfully executes.

So *technically*, we already have support for this.

What now? Should I still try and add this functionality?

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1567524] Re: Support tar.lz

Yes, I think tar supports lzma, judging from --lzma in the man page, and
it would be good to support it cleanly in snapcraft.

Mark

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

El 10/07/16 a las 08:52, Mark Shuttleworth escribió:
> Yes, I think tar supports lzma, judging from --lzma in the man page, and
> it would be good to support it cleanly in snapcraft.

Just for the record, to unpack tar files we are using
https://docs.python.org/3/library/tarfile.html

Leo Arias (elopio)
tags: added: sources
Changed in snapcraft:
status: In Progress → Triaged
tags: added: bitesize
Changed in snapcraft:
assignee: Simon Quigley (tsimonq2) → nobody
Changed in snapcraft:
assignee: nobody → Heesen Ponnusawmy (heesen)
description: updated
summary: - Support tar.lz
+ Support tar.lzma
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.