upload to ppa for multi dists

Bug #691862 reported by Ivan Borzenkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

Hello
I do not know, maybe I invented the bicycle, but in no devscripts in ubuntu-dev-tools I have not found a script to upload packages to several distributions.
Posted here is a script, perhaps it will be useful.

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

This script seems to trivial to me. To upload upload multiple dists, you could simply run

dput ppa:<user>/<ppa> ${PROGRAM}_${VERSION}~${dist1}_source.changes ${PROGRAM}_${VERSION}~${dist2}_source.changes ${PROGRAM}_${VERSION}~${dist3}_source.changes

and so on.

Revision history for this message
Benjamin Drung (bdrung) wrote :

BTW, we have now backportpackage in ubuntu-dev-tools, which is capable of doing what your script does.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Invalid
Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

in natty

dpkg -L ubuntu-dev-tools | grep backport
zsh: done dpkg -L ubuntu-dev-tools |
zsh: exit 1 grep backport

upload it further, the main is - generate *_source.changes

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

http://bazaar.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/trunk/annotate/head%3A/backportpackage

O, my fucking god!

I have a new package, I need to load it in ppa for natty, maverick and lucid
How much I have to do with that script?

Revision history for this message
Benjamin Drung (bdrung) wrote :

The backportpackage script is very new. It will be released with the next upload of ubuntu-dev-tools (0.108). If you can't wait, you can run following command to create the package:

bzr branch lp:ubuntu-dev-tools
cd ubuntu-dev-tools
bzr bd

Revision history for this message
Benjamin Drung (bdrung) wrote :

Look at the man page of backportpackage. It has examples in it.

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

hm, work, but:
  File "/home/ivan/ubuntu-dev-tools/backportpackage", line 234, in do_backport
    if 0 != do_build(workdir, package, release, bp_version, builder):
  File "/home/ivan/ubuntu-dev-tools/backportpackage", line 190, in do_build
    if opts.update:
NameError: global name 'opts' is not defined

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

def do_upload(workdir, package, bp_version, upload):

not have -y option - ask for evry upload?

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

    if not opts.upload and not opts.build:
        p.error('Nothing to do')

why? if I want get only changes files and not upload or build deb packages.

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

    check_call(['debuild', '-S', '-sa'], cwd=srcdir)

only -sa ?

upload to many dists in one ppa, and backports -sd is better.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Please file separate bugs against ubuntu-dev-tools (with the title start with "[backportpackage]") for comment #8, #9, #10, and #11

Revision history for this message
Ivan Borzenkov (ivan1986) wrote :

also, variable opts advisable to make a global - it is read-only, and drag it over all functions of silly, or at least pass vs at once rather than piecemeal

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

Other bug subscribers

Bug attachments

Remote bug watches

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