~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/buildd/buildrecipe

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-08-12 22:46:49 UTC
  • mfrom: (11327.1.1 maverick-builds-oh-no)
  • Revision ID: launchpad@pqm.canonical.com-20100812224649-my4o2dumarmrfvyy
[r=thumper][ui=None][bug=617072] Fix the maverick buildds for bzr 2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
import os
11
11
import os.path
12
12
import pwd
 
13
import socket
13
14
from subprocess import call
14
15
import sys
15
16
 
155
156
        os.environ["HOME"], "build-" + build_id, *extra)
156
157
 
157
158
if __name__ == '__main__':
 
159
    # As of bzr 2.2, a defined identity is needed.  In this case, we're using
 
160
    # buildd@<hostname>.
 
161
    hostname = socket.gethostname()
 
162
    os.environ['BZR_EMAIL'] = 'buildd@%s' % hostname
 
163
 
158
164
    builder = RecipeBuilder(*sys.argv[1:])
159
165
    if builder.install() != 0:
160
166
        sys.exit(RETCODE_FAILURE_INSTALL)