launchpad.py says a PPA package is a source package but tells you it has no binaries

Bug #1148015 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Daisy
Fix Released
High
Brian Murray

Bug Description

On errors.ubuntu.com I was trying to find crashes for indicator-stickynotes which comes from a PPA. However, it is not possible to find these using the current way the code is setup.

From errors/api/resources.py we have:

        elif package and launchpad.is_source_package(package):
            for binary in launchpad.get_binaries_in_source_package(package):
                packages.append(binary)

launchpad.is_source_package() returns True for indicator-stickynotes but then launchpad.get_binaries_in_source_package() returns ''. Subsequently, no errors are returned although there really are some reported about this package.

One idea to fix this would be to always add package to packages. Although, its possible that a PPA package could produce multiple binary packages and we'd really like to know the names of those.

Related branches

Changed in daisy:
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

I thought this might be because indicator-stickynotes does not have a version for raring but this also happens with firefox-lp-improvements which does.

In [4]: launchpad.get_binaries_in_source_package('firefox-lp-improvements')
Out[4]: ''

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

From what I can tell it looks like each PPA has their own archive so get the binary names would be quite hard.

gdl = lp.people['gm-dev-launchpad']
In [14]: archive = gdl.getPPAByName(name='ppa')

In [15]: archive.web_link
Out[15]: u'https://launchpad.net/~gm-dev-launchpad/+archive/ppa'

In [16]: archive.distribution_link
Out[16]: u'https://api.launchpad.net/devel/ubuntu'

In [18]: [b.binary_package_name for b in archive.getPublishedBinaries()]
Out[18]:
[u'firefox-bugsquad-lp-improvements',
 u'firefox-bugsquad-lp-improvements',
 u'firefox-bugsquad-lp-improvements',

Changed in daisy:
status: New → Fix Committed
assignee: nobody → Brian Murray (brian-murray)
description: updated
Changed in daisy:
status: Fix Committed → Fix Released
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.