diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-10 16:12:06 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-10 16:28:13 +0100 |
commit | caaa37d42dec002ffe20f2152767f3ce37cb1bf5 (patch) | |
tree | 9bfb0e630f0688aeb31940212da5c32e738cf74f /morphlib/source.py | |
parent | 7ec6cd23cefe5e116a54c6c0cb2aa0669adcd991 (diff) | |
download | morph-caaa37d42dec002ffe20f2152767f3ce37cb1bf5.tar.gz |
Add SourcePool class and make Source store its morphology filename
Diffstat (limited to 'morphlib/source.py')
-rw-r--r-- | morphlib/source.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/source.py b/morphlib/source.py index 399d9e0c..33549df4 100644 --- a/morphlib/source.py +++ b/morphlib/source.py @@ -26,6 +26,7 @@ class Source(object): * ``repo`` -- the git repository which contains the source * ``sha1`` -- the absolute git commit id for the revision we use * ``morphology`` -- the in-memory representation of the morphology we use + * ``filename`` -- basename of the morphology filename * ``dependencies`` -- list of Sources for build dependencies for us * ``dependents`` -- list of Source for whom we are a build dependency @@ -34,11 +35,12 @@ class Source(object): ''' - def __init__(self, repo, sha1, morphology): + def __init__(self, repo, sha1, morphology, filename): assert type(morphology) == morphlib.morph2.Morphology self.repo = repo self.sha1 = sha1 self.morphology = morphology + self.filename = filename self.dependencies = [] self.dependents = [] |