diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-10 16:03:44 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-11 13:42:57 +0100 |
commit | 5cdd2996ef74c7792d4ad85db985886228e00cbf (patch) | |
tree | e4eb29e07fc0bf9c124cbfc0631bb5b65350fc34 /morphlib/source.py | |
parent | 68a907d04932330efeebc0b30b349e54b4b644ca (diff) | |
download | morph-5cdd2996ef74c7792d4ad85db985886228e00cbf.tar.gz |
Add the new BuildGraph class including tests.
This class takes a source pool and computes a valid build order for
the sources in this pool, if possible.
Diffstat (limited to 'morphlib/source.py')
-rw-r--r-- | morphlib/source.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/source.py b/morphlib/source.py index cfcd320b..4e36e189 100644 --- a/morphlib/source.py +++ b/morphlib/source.py @@ -56,3 +56,5 @@ class Source(object): '''Do we depend on ``source``?''' return source in self.dependencies + def __str__(self): # pragma: no cover + return '%s|%s|%s' % (self.repo, self.sha1, self.filename) |