~cjwatson/launchpad-buildd/rename-fakeslave

« back to all changes in this revision

Viewing changes to lpbuildd/target/build_livefs.py

  • Committer: Colin Watson
  • Date: 2018-10-09 11:54:04 UTC
  • mfrom: (347.1.1 image-targets)
  • Revision ID: cjwatson@canonical.com-20181009115404-ztyboaodrxh45qa0
[r=cjwatson] buildlivefs: support passing an IMAGE_TARGETS variable into the environment

This is needed for projects, such as ubuntu-cpc, that produce multiple
images as part of a single build, in order to be selective about which image
sets to produce.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
            "--image-format", metavar="FORMAT",
50
50
            help="produce an image in FORMAT")
51
51
        parser.add_argument(
 
52
            "--image-target", dest="image_targets", default=[],
 
53
            action="append", metavar="TARGET",
 
54
            help="produce image for TARGET")
 
55
        parser.add_argument(
52
56
            "--proposed", default=False, action="store_true",
53
57
            help="enable use of -proposed pocket")
54
58
        parser.add_argument(
124
128
                base_lb_env["SUBARCH"] = self.args.subarch
125
129
            if self.args.channel is not None:
126
130
                base_lb_env["CHANNEL"] = self.args.channel
 
131
            if self.args.image_targets:
 
132
                base_lb_env["IMAGE_TARGETS"] = " ".join(
 
133
                    self.args.image_targets)
127
134
            lb_env = base_lb_env.copy()
128
135
            lb_env["SUITE"] = self.args.series
129
136
            if self.args.datestamp is not None: