summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-01 14:24:15 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-02 17:09:34 +0000
commitd1cbb9b6b831f54fa65017b7a0e72b3c3dcecec6 (patch)
treeb5b5e61ba318a7408b620ed36af66b9143853331 /morphlib/builder.py
parent7f72010b604468e5c8e24deba10f5c181b72a131 (diff)
downloadmorph-d1cbb9b6b831f54fa65017b7a0e72b3c3dcecec6.tar.gz
Remove unnecessary variable
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index 800075a5..ce0471d9 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -179,9 +179,6 @@ class BlobBuilder(object): # pragma: no cover
def build(self):
self.prepare_logfile()
- # record all items built in the process
- built_items = []
-
# get a list of all the items we have to build for this blob
builds = self.builds()
@@ -202,15 +199,13 @@ class BlobBuilder(object): # pragma: no cover
self.install_chunk(name, filename)
self.dump_memory_profile('after installing chunk')
- built_items.append((name, filename))
-
# store the logged build times in the cache
self.save_build_times()
# store the log file in the cache
self.save_logfile()
-
- return built_items
+
+ return builds.items()
def filename(self, name):
return '%s.%s.%s' % (self.cache_prefix,