1. include_pending=True will make it potentially return more than one version
2. the archive is not specified so it'll pick up publications from PPAs
I want to deprecate IDistroSeries.getPublishedSources(), it's a little evil. Let's use IArchive.getPublishedSources() instead, you can do the exact same thing by copying this code:
6 + def _package_url(self, distro_series, version): series. getPublishedSou rces( source_ package_ name, include_ pending= True,
57 + pubs = distro_
58 + self.context.
59 + version=version)
This is going to break for 2 reasons:
1. include_ pending= True will make it potentially return more than one version
2. the archive is not specified so it'll pick up publications from PPAs
I want to deprecate IDistroSeries. getPublishedSou rces(), it's a little evil. Let's use IArchive. getPublishedSou rces() instead, you can do the exact same thing by copying this code:
pubs = distro_ series. main_archive. getPublishedSou rces( self.context. source_ package_ name, version, PackagePublishi ngStatus. PUBLISHED, match=True)
name=
version=
status=
exact_
and profit!