indicates a package origin of Ubuntu for Ubuntu systems

Bug #1031978 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
New
Undecided
Unassigned

Bug Description

bug 1014269 is an example of a bug reported from an Ubuntu system where a lot of the dependencies are lists as [origin: Ubuntu] which doesn't make a lot of sense.

I believe this can happen when the cache doesn't have a record for the origin of the package. I was able to test this by changing which mirror I use with software-properties-gtk and not updating my sources e.g. no apt-get update was run.

In [1]: from apport.packaging_impl import impl as packaging
In [2]: packaging.is_distro_package('apt-clone')
Out[2]: False
In [3]: pkg = packaging._apt_pkg('apt-clone')
In [4]: pkg.candidate.origins
Out[4]: [<Origin component:'' archive:'now' origin:'' label:'' site:'' isTrusted:False>]

It is interesting that bug 1014269 is about ubiquity and from a Live CD. I'd expect a lot of bugs reported from Live CDs to be in this situation. This is rather important now that the error tracker is taking into account package origins.

Revision history for this message
Brian Murray (brian-murray) wrote :

Actually, my test doesn't make that much sense as:

In [9]: packaging.get_package_origin('apt-clone')

returns None

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.