no stable series

Bug #1247658 reported by Timmie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Invalid
Undecided
Unassigned

Bug Description

Hello,
I try to retrieve information on a PPA using:

ubuntu = lp_login.distributions["ubuntu"]
#distro_arch_series=raring_amd64
#distro_series=raring
#series = ubuntu.saucy
#series = ubuntu.getSeries(name_or_version = 'saucy')
series = ubuntu.stable_series
#series = ubuntu.current_series
#series = lp.projects['ubuntu'].series

for p in archive.getPublishedSources(status='Published', distro_series=series):
    print p.source_package_name, p.source_package_version

But I always get the following error:
AttributeError: https://api.launchpad.net/devel/ubuntu object has no attribute 'stable_series'

What is the right keyword here to get info on the packages of the current stable (e.g. 13.10) series?

Thanks.

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

There's no single property for that, but you can do it by iterating over ubuntu.series and take the first whose status is "Current Stable Release".

Changed in launchpadlib:
status: New → Invalid
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.