Need api call to get source packages a team is subscribed to
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Kamran Riaz Khan | ||
launchpadlib |
Invalid
|
Low
|
Unassigned |
Bug Description
This page provides a listing of the packages that a team has subscribed to:
https:/
Please add an api call to launchpadlib that provides this information (well, the left-hand column).
Background:
Many teams work with more than one package. Xorg and GNOME are examples.
When we develop automated tools, we like to be able to apply them against all the packages we care about. The team package subscription mechanism shown at the above link is a convenient way of tracking this in launchpad.
To date, what I've done is screenscrape the above URL to build a list of packages, and then I iterate through that list to do what needs done. For instance, see http://
So having a way to getting this source package list will help enable migrating such scripts to using launchpadlib.
Related branches
- Graham Binns (community): Approve (code)
-
Diff: 66 lines (+36/-0)3 files modifiedlib/canonical/launchpad/interfaces/_schema_circular_imports.py (+4/-0)
lib/lp/registry/interfaces/person.py (+2/-0)
lib/lp/registry/stories/webservice/xx-person.txt (+30/-0)
Changed in malone: | |
assignee: | nobody → Bryce Harrington (bryceharrington) |
tags: | added: story-better-bug-notification |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in malone: | |
status: | Fix Committed → Fix Released |
Essentially what I want to replace is the following logic (which I'll use for the time being)
#!/usr/bin/perl
use strict;
use LWP::Simple;
my $content = get("https:/ /bugs.launchpad .net/~ubuntu- x-swat/ +packagebugs");
foreach my $line (split /\n/, $content) { x-swat. *>(.+) in ubuntu</a>|) {
if ($line =~ m|ubuntu-
print "$1\n";
}
}