← Back to team overview

launchpad-users team mailing list archive

Re: looming LP query scripts

 

Hello,
thanks you very much.

> To get you started, the following example should work for your first use case:
> 
> ----
> 
> #!/usr/bin/python
> 
> from launchpadlib.launchpad import Launchpad
> 
> PPAOWNER = 'andrewsomething'
> PPANAME = 'typecatcher'
> 
> lp_login = Launchpad.login_anonymously('ppastats',
>                                        'edge',
>                                        '~/.launchpadlib/cache/',
>                                        version='devel')
> owner = lp_login.people[PPAOWNER]
> archive = owner.getPPAByName(name=PPANAME)
> 
> for p in archive.getPublishedSources(status='Published'):
>     print p.source_package_name, p.source_package_version
How could I filter this list by only showing/including the packages fro
a specific release, say "13.10"?
Thanks and kind regards,
Timmie




References