diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-26 11:44:42 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-26 12:03:36 +0100 |
commit | 0383116e132d80f8cbe333f275ba2960baefb82b (patch) | |
tree | 7eb771457f3cd643128bf54a58e4da5a98d2b190 /morphlib/plugins/tarball-systembuilder_plugin.py | |
parent | 5300fdafdf891de473529c1bec618d5d3f88fa59 (diff) | |
download | morph-0383116e132d80f8cbe333f275ba2960baefb82b.tar.gz |
Refactor to get rid of undescriptive variable names
Diffstat (limited to 'morphlib/plugins/tarball-systembuilder_plugin.py')
-rw-r--r-- | morphlib/plugins/tarball-systembuilder_plugin.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/morphlib/plugins/tarball-systembuilder_plugin.py b/morphlib/plugins/tarball-systembuilder_plugin.py index 5975a5c3..1114aaff 100644 --- a/morphlib/plugins/tarball-systembuilder_plugin.py +++ b/morphlib/plugins/tarball-systembuilder_plugin.py @@ -44,14 +44,12 @@ class RootfsTarballBuilder(SystemKindBuilder): # pragma: no cover rootfs_artifact = self.new_artifact( self.artifact.source.morphology['name'] + '-rootfs') handle = self.local_artifact_cache.put(rootfs_artifact) - image_name = handle.name try: - mount_point = self.staging_area.destdir(self.artifact.source) - factory_path = mount_point - self.unpack_strata(factory_path) - self.create_fstab(factory_path) - self.copy_kernel_into_artifact_cache(factory_path) + fs_root = self.staging_area.destdir(self.artifact.source) + self.unpack_strata(fs_root) + self.create_fstab(fs_root) + self.copy_kernel_into_artifact_cache(fs_root) except BaseException, e: logging.error(traceback.format_exc()) self.app.status(msg='Error while building system', |