diff options
-rw-r--r-- | morphlib/buildcommand.py | 9 | ||||
-rwxr-xr-x | tests.as-root/branch-from-image-works.script | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 0e91f8a1..d49f9e72 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -195,8 +195,10 @@ class BuildCommand(object): self.app.status_prefix = ( old_prefix + '[Build %d/%d] ' % ((i+1), len(artifacts))) - self.app.status(msg='[%(name)s] Checking if %(kind)s needs building %(sha1)s', - name=a.name, kind=a.source.morphology['kind'], sha1=a.source.sha1[:7]) + self.app.status(msg='[%(name)s] Checking if %(kind)s needs ' + 'building %(sha1)s', + name=a.name, kind=a.source.morphology['kind'], + sha1=a.source.sha1[:7]) if self.is_built(a): self.app.status(msg='[%(name)s] The %(kind)s is already built', @@ -388,7 +390,8 @@ class BuildCommand(object): def build_and_cache(self, staging_area, artifact, setup_mounts): '''Build an artifact and put it into the local artifact cache.''' - self.app.status(msg='[%(name)s] Starting actual build: %(name)s %(sha1)s', + self.app.status(msg='[%(name)s] Starting actual build: %(name)s ' + '%(sha1)s', name=artifact.name, sha1=artifact.source.sha1[:7]) setup_mounts = self.app.settings['staging-chroot'] builder = morphlib.builder2.Builder( diff --git a/tests.as-root/branch-from-image-works.script b/tests.as-root/branch-from-image-works.script index 9afab661..9f82f629 100755 --- a/tests.as-root/branch-from-image-works.script +++ b/tests.as-root/branch-from-image-works.script @@ -49,7 +49,8 @@ workspace="$DATADIR/workspace" "$SRCDIR/scripts/test-morph" init "$workspace" cd "$workspace" "$SRCDIR/scripts/test-morph" branch-from-image \ - test:morphs mybranch --metadata-dir="$extracted/baserock" + test:morphs mybranch \ + --metadata-dir="$extracted/baserock" cd mybranch/test:morphs grep -qFe "$hello_chunk_commit" hello-stratum.morph tar=$("$SRCDIR/scripts/test-morph" --find-system-artifact build hello-tarball) |