>>> ppa = launchpad.me.ppas[2]
>>> debian = launchpad.distributions['debian'].main_archive
>>> try:
... ppa.syncSource(from_archive=debian, include_binaries=False, source_name='webkit', to_pocket='Release', to_series='karmic', version='1.1.15.2-1')
... except launchpadlib.errors.HTTPError, e:
... print e.content
...
webkit 1.1.15.2-1 in sid (Cannot copy to an unsupported distribution: debian.)
The error message is clearly wrong; I'm not trying to copy *to* Debian, but *from* it. This is a useful operation because it permits easy testing whether a Debian upload fixes a bug when built for Ubuntu (in fact, that's exactly what I'm trying to do; the Ubuntu delta currently in the archive has been merged back to Debian and can be discarded).
Bug 320398 seems related, but claims that this only happens when you don't specify the series. However, note that in the code above I *am* specifying the series. Please note that I'm trying to copy to a series which should be published in my PPA, so this shouldn't suffer from issues such as that in bug 386693 where source is copied but will never be published.
Right, that error message is crack, it's only triggered when copying between distros which was the change put in to fix bug 386693.
Do you think it would be better to fix that by ensuring that a valid destination series is always present?