~xubuntu-dev/ubuntu-cdimage/xubuntu-base

« back to all changes in this revision

Viewing changes to bin/rebuild-requests

  • Committer: Stéphane Graber
  • Date: 2015-06-17 20:57:51 UTC
  • Revision ID: stgraber@ubuntu.com-20150617205751-yez9wvr8e14xe74b
Fix some more

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        project, build_type = project_id.rsplit("/", 1)
114
114
        sub_project = None
115
115
        if "/" in project:
116
 
            sub_project = project.split("/", 1)[1]
 
116
            project, sub_project = project.split("/", 1)
117
117
 
118
118
        arches = " ".join([entry[4] for entry in entries])
119
119
 
130
130
 
131
131
        env = dict(os.environ)
132
132
        if sub_project:
133
 
            env['SUB_PROJECT'] = sub_project
 
133
            env['SUBPROJECT'] = sub_project
134
134
        env['ARCHES'] = arches
135
135
        env['DIST'] = entries[0][0].series_title.lower()
136
136
        cmd = ["for-project", entry[1], "cron.%s" % entry[2]]
142
142
        if options.dry_run:
143
143
            if not options.quiet:
144
144
                if sub_project:
145
 
                    print("Dry-run: SUB_PROJECT=%s ARCHES=%s DIST=%s %s" %
146
 
                          (env['SUB_PROJECT'], env['ARCHES'], env['DIST'],
 
145
                    print("Dry-run: SUBPROJECT=%s ARCHES=%s DIST=%s %s" %
 
146
                          (env['SUBPROJECT'], env['ARCHES'], env['DIST'],
147
147
                           " ".join(cmd)))
148
148
                else:
149
149
                    print("Dry-run: ARCHES=%s DIST=%s %s" %