Primary Archive for Ubuntu

Asked by Pali

Hello,

I needed backport some packages from ubuntu release maverick (or natty) to my PPA for karmic. So I downloaded dsc packages from http://packages.ubuntu.com and uploaded it to my PPA (for release karmic).

My question is: it is possible to use web launchpad interface for coping packages from Primary Archive for Ubuntu? Or some other simple way to backport ubuntu packages (from archive.ubuntu.com) to my PPA for other relase? I have tried search for this PPA https://launchpad.net/ubuntu/+archive/primary but link does not work.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
Julian Edwards Edit question
Solved by:
Julian Edwards
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

No. The ubuntu archive is maintained by canonical -- the general populace does not have the permissions to do this, for obvious reasons (eg, security).

If you want, you can request backport of a package,

https://help.ubuntu.com/community/UbuntuBackports

Though to be honest, this does not get much attention. There are very few packages in the -backports repos.

Revision history for this message
mycae (mycae) said :
#2

Oh, sorry, I appear to have misread your question -- you want to go from the archive to your PPA. This is indeed possible.

Just go to

packages.ubuntu.com/natty/ and download the package you want, then add it to your PPA as you normally would (Assuming you are the PPA maintainer)

Revision history for this message
Pali (pali) said :
#3

Yes, I wrote to question, that I download dsc archive from packages.ubuntu.com and uploaded to my PPA (as normal). But my question is if it is possible to simple copy package from ubuntu to my ppa using only launchpad web interface? (like copying package from one PPA to another). Has ubuntu some PPA which has all packages and it is possible to copy from it?

Download packages from packages.ubuntu.com, changing debian/changelog spends time. And copying package from other PPA to my is very simple. Only I select package names and LP automatically rebuild it. (It is not needed to download repack and reupload dsc package).

And some arch indep packages are not required to (re)build again. LP has option to copy only packages (not rebuild) and so I neednt wait while LP compile it.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Pali (pali) said :
#5

I really want to have answer!

I see that some packages in PPA have status "Copied from Primary Archive for Ubuntu"...

Revision history for this message
Julian Edwards (julian-edwards) said :
#6

The only reliable way is to use the API, which is what those people are doing. The UI pages time out because they are designed for a PPAs with a few hundred packages, not the Ubuntu archive which has thousands.

See "syncSource" in the API help at https://launchpad.net/+apidoc

Revision history for this message
Pali (pali) said :
#7

Ok, can you give me example of using this command syncSource? I found info about API on https://help.launchpad.net/API and on https://help.launchpad.net/API/launchpadlib

Revision history for this message
Best Julian Edwards (julian-edwards) said :
#8

You need something like this:

from launchpadlib.launchpad import Launchpad
launchpad = Launchpad.login_with('XXX', 'production')
distros = launchpad.distributions
ubuntu = distros['ubuntu']
main_archive = ubuntu.main_archive
person = launchpad.people['NNN']
ppa = person.archive
ppa.syncSources(source_names=["bzr"], from_archive=main_archive)

Replace the XXX with the application name you want to use for this script, replace the NNN with the person's name who has a PPA.

The example copies the "bzr" source from the main Ubuntu archive.

Revision history for this message
Pali (pali) said :
#9

Thanks Julian Edwards, that solved my question.