Comment 5 for bug 340935

Revision history for this message
Celso Providelo (cprov) wrote : Re: DistributionSourcePackage doesn't expose enough of its attributes

Right, that's a bug_target pretending to be a distribution_source_package. Try this workaround:

{{{
>>> dsp = lp.load(task.target.self_link)
>>> dsp.distribution
<distribution at https://api.edge.launchpad.net/beta/ubuntu>
>>> dsp.name
u'rescue'
>>> dsp.display_name
u'rescue in ubuntu'
}}}

That's a bug in the way bug_target are created/exposed, IMO. Let's check what the malone guys have to say.