[PATCH 16/18] Refactor by breaking long expression into two

Lars Wirzenius lars.wirzenius at codethink.co.uk
Thu Jul 26 12:13:38 BST 2012


---
 morphlib/plugins/tarball-systembuilder_plugin.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/morphlib/plugins/tarball-systembuilder_plugin.py b/morphlib/plugins/tarball-systembuilder_plugin.py
index 1114aaf..8afe6bc 100644
--- a/morphlib/plugins/tarball-systembuilder_plugin.py
+++ b/morphlib/plugins/tarball-systembuilder_plugin.py
@@ -41,8 +41,8 @@ class RootfsTarballBuilder(SystemKindBuilder): # pragma: no cover
         with self.build_watch('overall-build'):
             arch = self.artifact.source.morphology['arch']
             
-            rootfs_artifact = self.new_artifact(
-                    self.artifact.source.morphology['name'] + '-rootfs')
+            rootfs_name = self.artifact.source.morphology['name'] + '-rootfs'
+            rootfs_artifact = self.new_artifact(rootfs_name)
             handle = self.local_artifact_cache.put(rootfs_artifact)
 
             try:
-- 
1.7.2.5





More information about the baserock-dev mailing list