summaryrefslogtreecommitdiff
path: root/morphlib/morph2.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-11 13:15:31 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-11 13:42:57 +0100
commit5afd3d7ce64b762acb228f7f6b4f0326d030807b (patch)
tree75996c6ca35f742fdec74e300bce2662c3c7abcf /morphlib/morph2.py
parentd1f60363d74a579ee8eee22e0b03494d63dee830 (diff)
downloadmorph-5afd3d7ce64b762acb228f7f6b4f0326d030807b.tar.gz
Add original_ref member to Source. Default to None for build-depends.
We will almost always want to look up sources based on the data we find in morphologies (e.g. chunk sources found in a stratum or strata found in a system). For that we need to remember the original_ref in addition to the resolved SHA1 and look up sources using this original ref. The original ref is therefore also used as part of the hash key in SourcePool now.
Diffstat (limited to 'morphlib/morph2.py')
-rw-r--r--morphlib/morph2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/morph2.py b/morphlib/morph2.py
index 717d855c..dbbf0c68 100644
--- a/morphlib/morph2.py
+++ b/morphlib/morph2.py
@@ -32,9 +32,10 @@ class Morphology(object):
('test-commands', []),
('install-commands', []),
('sources', []),
+ ('strata', []),
('max-jobs', None),
('description', ''),
- ('build-depends', []),
+ ('build-depends', None),
('build-system', 'manual'),
]