~rexbron/ubuntu-dev-tools/python-ppaput

« back to all changes in this revision

Viewing changes to ppaput

  • Committer: Andrew Hunter
  • Date: 2008-02-15 18:43:38 UTC
  • Revision ID: andrew@aehunter.net-20080215184338-6pbdys8nasuno0t8
Renamed python-ppaput to python-ubuntutools and changed ppaput moudule name to ppa.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
import sys
21
 
import ppaput
 
21
import ppa
22
22
from optparse import OptionParser
23
23
 
24
24
USAGE = \
53
53
    print debuild_args
54
54
 
55
55
    (sourcepackage, version, \
56
 
     section, release) = ppaput.get_name_version_section_and_release()
 
56
     section, release) = ppa.get_name_version_section_and_release()
57
57
 
58
58
    if options.new_bug:
59
 
            bugnumber = ppaput.file_bug(sourcepackage, version)
 
59
            bugnumber = ppa.file_bug(sourcepackage, version)
60
60
            os.system("dch -a 'Fixes (LP: #%s)'" % bugnumber)
61
 
    if not ppaput.call_debuild(debuild_args):
 
61
    if not ppa.call_debuild(debuild_args):
62
62
            sys.exit(1)
63
63
    
64
64
    changesfile = "../%s_%s_source.changes" % (sourcepackage, version)
67
67
                os.path.expanduser(changesfile)
68
68
        sys.exit(1)
69
69
 
70
 
    host = ppaput.lookup_dput_host(location)
71
 
    (dput_res, incoming) = ppaput.call_dput(location, changesfile)
 
70
    host = ppa.lookup_dput_host(location)
 
71
    (dput_res, incoming) = ppa.call_dput(location, changesfile)
72
72
    if not dput_res:
73
73
        print >> sys.stderr, "%s was not uploaded." % changesfile
74
74
        sys.exit(1)
75
75
 
76
 
    fixed_lp_bugs = ppaput.find_fixed_launchpad_bug(changesfile)
 
76
    fixed_lp_bugs = ppa.find_fixed_launchpad_bug(changesfile)
77
77
    if fixed_lp_bugs:
78
 
            deal_with_bugreport(fixed_lp_bugs, host, section, incoming, 
 
78
            ppa.deal_with_bugreport(fixed_lp_bugs, host, section, incoming, 
79
79
                                sourcepackage, version, release)
80
80
 
81
81