Need --arch= support in apt-ftparchive

Bug #714970 reported by LaMont Jones
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Fix Released

Bug Description

Binary package hint: apt

The important part of this is that it does not introduce regressions. This is the focus of the test
case. There is no need to verify the "bug" in the old version:

1. install apt-utils from lucid-proposed
2. create "repo" dir and download into that:
3. ensure you are in the "repo" dir and run "apt-ftparchive packages ."
4. verify that you see two stanzas that start with "Package: 4g8" and that one has
   Architecture: armel and the other Architecture: amd64
5. now run "apt-ftparchive packages . --arch=armel" and verify that there is only a single stanza
   (with armel as the arch)
6. repeat for amd64 (expected one stanza) i386 (empty output)
7. create new repo2 dir and cd into it
8. download
9. run "apt-ftparchive packages ." and very that 2vcard is in the output
10. run "apt-ftparchive packages . --arch=i386" and verify that 2vcard is in the output
11. repeat 10 with --arch=amd64 and --arch=armel and verify that 2vcard is part of the output
    (its a arch=all package)

In order to better publish the Ubuntu archive, we need lucid support in apt-ftparchive for --arch=.

We are currently testing a patch, and will upload it once it is confirmed to be sufficient for our needs. The change is minor and isolated to apt-ftparchive.

Rather than maintain a separate fork for the infrastructure, we would like to have this appear in an SRU to lucid.


Revision history for this message
David Kalnischkies (donkult) wrote :

Shouldn't a backport of revision 1875.3.3 be enough instead of a new patch?

tags: added: patch
Revision history for this message
Michael Vogt (mvo) wrote :

I upload a backport to lucid-proposed now.

Changed in apt (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Michael Vogt (mvo)
Revision history for this message
Michael Vogt (mvo) wrote :

I can not nomiate it for a release, launchpad oopses on me when I try.

Changed in apt (Ubuntu):
assignee: Michael Vogt (mvo) → nobody
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

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

Changed in apt (Ubuntu):
status: In Progress → Fix Released
Changed in apt (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Michael Vogt (mvo)
description: updated
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Lucid:
I followed the steps from the test case with success and saw no regression. The version of apt-utils in -proposed fixes the issue.

Marking as verification-done

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt -

apt ( lucid-proposed; urgency=low

  * backported the apt-ftparchive --arch support (LP: #714970)
 -- Michael Vogt <email address hidden> Wed, 16 Feb 2011 20:56:11 +0100

Changed in apt (Ubuntu Lucid):
status: Fix Committed → Fix Released
tags: added: testcase
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.