Copy UI uses source distribution series names rather than target distribution series names

Bug #320398 reported by William Grant
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

The package copy web UI restricts the destination series to the non-obsolete series of the distribution of the source archive (not even the PPA-enabled series). Using the source archive's is not right, but it only currently causes a problem in the case of copies from Debian primary. It is often useful post-DIF to copy things from Debian into one's PPA, so fixing that UI would be useful.

The current UI also means that PPAs can contain packages that will never be built or published, and are for a distro other than the one the archive is for... it's rather confusing.

The API isn't affected; it always looks up the series name in the target archive's distro.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for reporting William.

Changed in soyuz:
importance: Undecided → Medium
milestone: none → pending
status: New → Triaged
Revision history for this message
William Grant (wgrant) wrote :

Apparently IArchive.syncSource(s) are affected too - but only if you don't specify the series.

Revision history for this message
Celso Providelo (cprov) wrote :

Right, API is affected as reported in bug #386693.

Celso Providelo (cprov)
tags: added: ppa
Revision history for this message
Celso Providelo (cprov) wrote :

The UI bug remains, i.e, the series options are from debian, not from ubuntu.

However the ability to copy sources to debian series in ubuntu PPA was taken by the fix introduced for bug #386693.

Now, if you visit https://edge.launchpad.net/debian/+archive/primary/+copy-packages and tries to copy packages to your PPA it will fail.

Revision history for this message
Guiodic (Guido Iodice) (guido-iodice) wrote :

Hi. My bug #627166 was marker as a duplicate of this one.

But my report was the opposite, in many way:

while it is possible to copy from Ubuntu primary archive to a ppa, for example to try a backport from ubuntu+1 to current version, it is impossible to copy a package from Debian to Ubuntu (but only from Debian to another Debian series).

This ability should be useful in many situation.

I know there are some differences in packages names and dependencies and in some patches too. But most packages are very compatible between these distros.

Thank you.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Hi

I marked it a dupe because it is indeed the same problem :-)

This bug is about fixing the UI so we *can* copy into Ubuntu PPAs. The problem is that the UI only allows you to specify copying into Debian series, and it should be Ubuntu series.

Revision history for this message
Guiodic (Guido Iodice) (guido-iodice) wrote :

thank you Julian.
I misunderstood the report.

Changed in launchpad:
importance: Medium → High
summary: - Copy UI allows copying into Debian series in Ubuntu PPAs
+ Copy UI allows copying into unpublishable (e.g. Debian) series in Ubuntu
+ PPAs
affects: baltix → null
no longer affects: null
summary: - Copy UI allows copying into unpublishable (e.g. Debian) series in Ubuntu
- PPAs
+ Copy UI uses source distribution series names rather than target
+ distribution series names: allows copying into unpublishable (e.g.
+ Debian) series in Ubuntu PPAs
William Grant (wgrant)
tags: added: package-copies
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote : Re: Copy UI uses source distribution series names rather than target distribution series names: allows copying into unpublishable (e.g. Debian) series in Ubuntu PPAs

Hi William and Celso,

Could you tell if copying from Debian to Ubuntu PPA will be fixed until summer 2013? Now I must write recipe for every package, which Debian version is newer than Ubuntu. For example Stellarium 12 is already packaged in Debian experimentas, but not in Ubuntu 13.04, see:

https://launchpad.net/debian/+archive/primary/+copy-packages?field.name_filter=stellarium&field.status_filter=published

William Grant (wgrant) on 2012-10-15
> tags: added: package-copies

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 320398] Re: Copy UI uses source distribution series names rather than target distribution series names: allows copying into unpublishable (e.g. Debian) series in Ubuntu PPAs

On 15/02/13 13:00, Mantas Kriaučiūnas wrote:
> Hi William and Celso,
>
> Could you tell if copying from Debian to Ubuntu PPA will be fixed until
> summer 2013? Now I must write recipe for every package, which Debian
> version is newer than Ubuntu. For example Stellarium 12 is already
> packaged in Debian experimentas, but not in Ubuntu 13.04, see:
>
> https://launchpad.net/debian/+archive/primary/+copy-
> packages?field.name_filter=stellarium&field.status_filter=published

The copy UI is not meant to be used for copies from Debian. You could
use the copyPackages API call instead.

William Grant (wgrant)
tags: added: phone-rtm
William Grant (wgrant)
summary: Copy UI uses source distribution series names rather than target
- distribution series names: allows copying into unpublishable (e.g.
- Debian) series in Ubuntu PPAs
+ distribution series names
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Hi, could I use copy-package script from ubuntu-dev-tools for copying packages from Debian experimental to Ubuntu PPA?
It seems there are no plans to fix Lauchpad web UI for copying packages from Debian archive, right?

William Grant (wgrant) wrote on 2013-02-15:
> The copy UI is not meant to be used for copies from Debian. You could
> use the copyPackages API call instead.

Revision history for this message
William Grant (wgrant) wrote :

lp:ubuntu-archive-tools' copy-package utility is a simple wrapper around the copyPackages API call that I mentioned in comment #9, so it will work fine.

We have no immediate plans to make the web UI work for cross-distro copies.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Yes, copy-package utility from lp:ubuntu-archive-tools can copy packages from Debian experimental to Ubuntu PPA:
./copy-package --from=debian --suite=experimental --to=ppa:baltix/ubuntu/ppa --to-suite=xenial liblxqt

Thank you, WGrant :)

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote (last edit ):

I can't copy packages from Debian security updates and from testing (using --suite=trixie or --suite=testing), also I get old package version, not updated version from Debian security updates if try copy from Debian bookworm or bullseye with this command:

 ./copy-package --from=debian --suite=bookworm --to=ppa:baltix/ubuntu/ppa --to-suite=focal chromium
Copy candidates:
 chromium 114.0.5735.198-1~deb12u1 in bookworm

but chromium in bookworm security is at version 116.0.5845.180-1~deb12u1

It would be nice to fix WebUI instead of using broken copy-package script :)

William Grant (wgrant) wrote:
lp:ubuntu-archive-tools' copy-package utility is a simple wrapper around the copyPackages API call that I mentioned in comment #9, so it will work fine.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.