182
181
A /$DISTRO/+source/$PACKAGE page shows for a given source package all
183
the distro releases in which it was published (see table at the top of
184
the page). The information presented in each row is as follows: the
185
distro series name and status as well as the package component, pocket
182
the distro series in which it is published, and if there is a link to
183
a product series. If there is no upstream set, then a link to set one is
184
given at the end of the row. For each distro series, a list of the versions
185
available in that series are presented, along with which pocket has each
186
version, the component in which it's published, and the time elapsed since it
189
>>> user_browser.open("http://launchpad.dev/ubuntu/+source/iceweasel/")
190
>>> print extract_text(find_tag_by_id(
191
... user_browser.contents, 'packages_list'))
192
The Warty Warthog Release (current stable release) Set upstream link
193
1.0 release (main) ... weeks ago
195
The same page also has a section that gives some package information:
197
>>> print extract_text(find_tag_by_id(user_browser.contents, 'current'))
200
Urgency:* Low Urgency
203
*actual publishing details may vary in this distribution, these are just the package defaults.
205
And if the source has direct packaging linkage, the upstream's description
206
is used in another section:
208
>>> print extract_text(find_tag_by_id(user_browser.contents, 'upstream'))
209
This package is not linked to an upstream product.
211
As can be seen, the packaging is not linked yet. We can do that now using the
212
"Set upstream link" link.
214
>>> user_browser.getLink("Set upstream link").click()
215
>>> print user_browser.url
216
http://launchpad.dev/ubuntu/warty/+source/iceweasel/+edit-packaging
218
>>> user_browser.getControl(
219
... name='field.productseries').value = "firefox/trunk"
220
>>> user_browser.getControl('Change').click()
222
Go back to the source page, and now the upstream's description is shown.
224
>>> user_browser.open("http://launchpad.dev/ubuntu/+source/iceweasel/")
225
>>> print extract_text(find_tag_by_id(user_browser.contents, 'upstream'))
227
The Mozilla Firefox web browser
230
Switching to a different source now, "netapplet" is published in two
231
distroseries. The distroseries are presented in order, most recent first.
188
233
>>> browser.open("http://launchpad.dev/ubuntutest/+source/netapplet/")
189
>>> print extract_text(find_tag_by_id(browser.contents, 'packaging'))
190
ubuntutest version Upstream version
191
hoary-test development main release 1.0.1a None defined
192
breezy-autotest development main release 1.3.1 None defined
234
>>> print extract_text(find_tag_by_id(browser.contents, 'packages_list'))
235
Mock Hoary (active development) Set upstream link
236
1.0.1a release (main) (not published)
237
Breezy Badger Autotest (active development) Set upstream link
238
1.3.1 release (main) (not published)
194
Directly after the distro releases, the three latest PPA uploads of
195
this source package are displayed.
240
At the bottom of the page, the three latest PPA uploads of this source package
197
243
>>> print extract_text(find_tag_by_id(browser.contents, 'ppa_packaging'))
198
244
PPA named nightly for Person-name2 owned by Person-name2
305
346
>>> user_browser.open(
306
347
... "http://launchpad.dev/ubuntu/+source/a52dec/")
307
>>> print extract_text(find_tag_by_id(user_browser.contents, 'packaging'))
308
Ubuntu version Upstream version
348
>>> print extract_text(find_tag_by_id(
349
... user_browser.contents, 'packages_list'))
351
The package information portlet also reflects that the package is not present
352
at all in the distribution.
354
>>> print extract_text(find_tag_by_id(
355
... user_browser.contents, 'current'))
356
There is no current release for this source package in Ubuntu.
311
359
== Version history ==