Support xz compression inside debs

Bug #805389 reported by Michael Vogt
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned
Lucid
Fix Released
Medium
Unassigned
python-apt (Ubuntu)
Fix Released
Undecided
Unassigned
Lucid
Fix Released
Medium
Unassigned

Bug Description

Python-apt should support xz compression in deb packages.

Michael Vogt (mvo)
Changed in python-apt (Ubuntu):
status: New → Fix Released
Changed in python-apt (Ubuntu Lucid):
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Chris Halse Rogers (raof) wrote :

The package appears to have unrelated changes to data/templates/Debian.mirrors and data/templates/Ubuntu.mirrors.

If they are unintentional, please drop them and re-upload. If they're intentional please document them in the changelog :).

Changed in python-apt (Ubuntu Lucid):
status: In Progress → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

For the record, this is part of infrastructure work required to land this Launchpad change:

  https://code.launchpad.net/~cjwatson/launchpad/dpkg-xz-support-619152/+merge/32868

Revision history for this message
Julian Andres Klode (juliank) wrote :

The package has changes to the mirror lists because those lists are automatically generated at build-time. More precisely, they are generated in a pre-build script and updates are not checked into bzr normally.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Michael, or anyone else affected,

Accepted python-apt into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in python-apt (Ubuntu Lucid):
status: Incomplete → Fix Committed
tags: added: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote :

This doesn't work on its own. Unfortunately we also need revision 1327.95.5 from apt, otherwise I get:

  SystemError: "E:This is not a valid DEB archive, it has no 'data.tar.gz', 'data.tar.bz2' or 'data.tar.lzma' member"

Changed in apt (Ubuntu):
status: New → Fix Released
Colin Watson (cjwatson)
Changed in apt (Ubuntu Lucid):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Colin for the testing. I merged your fix for the missing bits in python-apt now. The reason its missing is that its in the 0.7 API compat code. With the 0.8 API the filelist is more pythonic:

    def test_xz_data(self):
        deb = apt.debfile.DebPackage("./data/test_debs/data-tar-xz.deb")
        self.assertEqual(deb.filelist, ["./", "usr/", "usr/bin/"])

But of course LP uses the 0.7 API so this patch needs to be added. I uploaded a new version now to lucid-proposed and will do the required apt bit as well.

Revision history for this message
Colin Watson (cjwatson) wrote :

Hello Michael, or anyone else affected,

Accepted python-apt into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in python-apt (Ubuntu Lucid):
status: Fix Committed → In Progress
status: In Progress → Fix Committed
Changed in apt (Ubuntu Lucid):
status: Triaged → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

Hello Michael, or anyone else affected,

Accepted apt into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Colin Watson (cjwatson) wrote :

I've tested that the tests of my dpkg-xz-support Launchpad branch now pass with these apt-utils and python-apt packages installed. I've also tested a routine dist-upgrade of 58 packages, with no problems.

Revision history for this message
Colin Watson (cjwatson) wrote :

(To clarify, I've only run the archiveuploader LP tests, but those were the only ones I touched.)

tags: added: verification-done
removed: verification-needed
affects: python-apt (Ubuntu) → python-aptsources (Ubuntu)
Changed in apt (Ubuntu):
assignee: nobody → MARIO MARTINEZ (www-martinez-13)
Changed in apt (Ubuntu Lucid):
assignee: nobody → MARIO MARTINEZ (www-martinez-13)
Changed in python-aptsources (Ubuntu):
assignee: nobody → MARIO MARTINEZ (www-martinez-13)
Colin Watson (cjwatson)
Changed in apt (Ubuntu):
assignee: MARIO MARTINEZ (www-martinez-13) → nobody
Changed in apt (Ubuntu Lucid):
assignee: MARIO MARTINEZ (www-martinez-13) → nobody
Changed in python-aptsources (Ubuntu):
assignee: MARIO MARTINEZ (www-martinez-13) → nobody
affects: python-aptsources (Ubuntu Lucid) → python-apt (Ubuntu Lucid)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.7.25.3ubuntu9.6

---------------
apt (0.7.25.3ubuntu9.6) lucid-proposed; urgency=low

  * backport support for xz compression (LP: #805389)
 -- Michael Vogt <email address hidden> Wed, 13 Jul 2011 11:57:22 +0200

Changed in apt (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-apt - 0.7.94.2ubuntu6.4

---------------
python-apt (0.7.94.2ubuntu6.4) lucid-proposed; urgency=low

  * add missing bits for the xz compression support, thanks
    to Colin Watson for the fix! (LP: #805389)
 -- Michael Vogt <email address hidden> Wed, 13 Jul 2011 10:57:21 +0200

Changed in python-apt (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Thanks for this. Any idea when I would be able to make an upload using xz compression? Are the Soyuz machine updated daily, or does someone from Canonical need to file a RT ticket?

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 805389] Re: Support xz compression inside debs

There's slightly more to it than that, and it'll involve some changes to
the Launchpad PPA. I'm working on it and will update this bug when you
can upload. Rest assured that I am on top of it.

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.