summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-05-29 16:20:01 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2013-05-29 16:20:01 +0100
commit2e33d30c2b4dabff006128391135cc595866c483 (patch)
tree7a0a4fb704ab5b31f95ff7de7fcfcf5b5f0dc327 /morphlib/buildcommand.py
parent85c92954fc4059a781c672a499fca773eafd6eeb (diff)
downloadmorph-2e33d30c2b4dabff006128391135cc595866c483.tar.gz
build graph: Improve the comment for stratum duplicate check
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index d49f9e72..5be216e1 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -126,9 +126,14 @@ class BuildCommand(object):
logging.warning('No %s' % method_name)
# Verify stratum build-depends agree with the system's contents.
- # It's not an error to build-depend on a stratum that isn't
- # included in the target system, but if it is included, the repo
- # and ref fields must match.
+ # It is permissible for a stratum to build-depend on a stratum that
+ # isn't specified in the target system morphology.
+ # Multiple references to the same stratum are permitted. This is
+ # handled by the SourcePool deduplicating added Sources.
+ # It is forbidden to have two different strata with the same name.
+ # Hence if a Stratum is defined in the System, and in a Stratum as
+ # a build-dependency, then they must both have the same Repository
+ # and Ref specified.
if src.morphology['kind'] == 'stratum':
name = src.morphology['name']
if name in stratum_names: