summaryrefslogtreecommitdiff
path: root/morphlib/builddependencygraph.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:17:36 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:17:36 +0000
commit8a4435f71a8a47e9cf3050ad6456cd9949da5958 (patch)
tree04fcc00d75ad0e8a8ad3f369688e6c833621c1b4 /morphlib/builddependencygraph.py
parentc5fc68fa232e88ec3e5e40aaec619280554886a9 (diff)
downloadmorph-8a4435f71a8a47e9cf3050ad6456cd9949da5958.tar.gz
Make ./check check for long lines (with excptions); fix long lines
Diffstat (limited to 'morphlib/builddependencygraph.py')
-rw-r--r--morphlib/builddependencygraph.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/morphlib/builddependencygraph.py b/morphlib/builddependencygraph.py
index 7908c660..b75eab84 100644
--- a/morphlib/builddependencygraph.py
+++ b/morphlib/builddependencygraph.py
@@ -169,7 +169,8 @@ class BuildDependencyGraph(object): # pragma: no cover
chunk = self.get_blob(treeish, filename)
chunk.add_parent(stratum)
- # store (name -> chunk) association to avoid loading the chunk twice
+ # store (name -> chunk) association to avoid loading the chunk
+ # twice
name_to_chunk[source['name']] = chunk
# read the build-depends information
@@ -189,8 +190,9 @@ class BuildDependencyGraph(object): # pragma: no cover
dependency = name_to_chunk[depname]
chunk.add_dependency(dependency)
else:
- raise Exception('%s: source %s references %s before it '
- 'is defined' % (stratum.morph.filename,
+ raise Exception('%s: source %s references %s before '
+ 'it is defined' %
+ (stratum.morph.filename,
source['name'],
depname))
else: