~cjwatson/launchpad-buildd/better-snap-channel-handling-2

« back to all changes in this revision

Viewing changes to lpbuildd/target/backend.py

  • Committer: Colin Watson
  • Date: 2019-02-07 11:09:40 UTC
  • mfrom: (353.3.2 image-type)
  • Revision ID: cjwatson@canonical.com-20190207110940-fays8acwsszhj338
[r=wgrant] Allow the LXD backend to accept a LXD image instead of a chroot tarball, skipping the conversion step.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        self.arch = arch
23
23
        self.build_path = os.path.join(os.environ["HOME"], "build-" + build_id)
24
24
 
25
 
    def create(self, tarball_path):
26
 
        """Create the backend based on a chroot tarball.
 
25
    def create(self, image_path, image_type):
 
26
        """Create the backend based on a base image.
27
27
 
28
28
        This puts the backend into a state where it is ready to be started.
29
29
        """