How do I become a queue admin?

Asked by Busayo Akanni

I am trying to use the copy-package command from the ubuntu archive tools (https://code.launchpad.net/ubuntu-archive-tools) but I need to be a queue admin before the --auto-approve flag will work for me. Currently, when I run

python3 copy-package -y -b -p account-name --ppa-name=nameOfPPA -s focal --to-suite=trusty packageName --auto-approve

I'm asked to authorise with a link, that's not ideal as this script needs to be in my release workflow and I want to automate the approval process.

  How do I become a queue admin?

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

You don't need the --auto-approve flag, or queue admin. It's relevant for copies into Ubuntu itself in some situations, but it's irrelevant for copies into PPAs. It's also unrelated to why you're asked for authorization.

Most Launchpad operations - that is, everything other than read-only operations that only access public data - need some kind of authorization token. By default those are saved in some appropriate backend via the python-keyring library, but some of those backends are desktop-oriented and awkward to use noninteractively. The easiest way to arrange for this to work in an unattended environment is to use a recent version of launchpadlib (1.10.16 or newer) and set the LP_CREDENTIALS_FILE environment variable to a file name. You can run copy-package once that way interactively to get it to save credentials to that file, perhaps with the --dry-run option so that it doesn't actually copy anything; then subsequent runs will load credentials from that file and use them rather than asking you for them.

Can you help with this problem?

Provide an answer of your own, or ask Busayo Akanni for more information if necessary.

To post a message you must log in.