API for copying packages (syncSources) needs a "from series" parameter

Bug #493914 reported by Cody A.W. Somerville on 2009-12-08
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself

Bug Description

API for copying packages between archives is difficult to use.

[00:21] <cody-somerville> wtf
[00:22] <cody-somerville> syncSources copied from lucid when I specifically passed it hardy primary as the from_archive
[00:23] <cody-somerville> or I thought I did
[00:23] <wgrant> cody-somerville: An archive is not per-series.
[00:23] <cody-somerville> ubuntu.getSeries(name_or_version='hardy').main_archive doesn't seem to do quite what I would have hoped
[00:25] <cody-somerville> wgrant, I want to copy a package from backports into a PPA.
[00:25] <wgrant> cody-somerville: Specify the name and version.
[00:25] <wgrant> cody-somerville: (or, since bigjools isn't watching, use the web UI)
[00:26] <cody-somerville> I guess I'll have to use syncSource instead of syncSources
[00:27] <wgrant> cody-somerville: Can't you specify the series?
[00:27] <cody-somerville> to copy to but not to specify from
[00:29] <wgrant> Well, that's stupidly useless.
[00:29] <wgrant> File a bug.
[00:30] <cody-somerville> I would but it times out when I try :)
[00:30] <cody-somerville> Oh, here we go

Julian Edwards (julian-edwards) wrote :

The bug description was stupidly useless as well ;)

summary: - API for copying packages is difficult to use
+ API for copying packages (syncSources) needs a "from series" parameter
Changed in soyuz:
status: New → Triaged
tags: added: api
Changed in soyuz:
importance: Undecided → Low
Colin Watson (cjwatson) wrote :

I noticed this independently a few months back (bug 913722) and fixed it for both Archive.syncSources and Archive.copyPackages.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers