From 2f5b39e45c4aaeb27f693de6be971df19d5ad1ad Mon Sep 17 00:00:00 2001 From: fantasai Date: Thu, 23 Jan 2020 22:39:45 +0100 Subject: [PATCH] Handle foreign exported links in the case of foreign diff specs. --- bikeshed/refs/ReferenceManager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bikeshed/refs/ReferenceManager.py b/bikeshed/refs/ReferenceManager.py index 8b6ae63e38..539539825b 100644 --- a/bikeshed/refs/ReferenceManager.py +++ b/bikeshed/refs/ReferenceManager.py @@ -427,6 +427,11 @@ def getRef(self, linkType, text, spec=None, status=None, statusHint=None, linkFo return # Otherwise + # Check lower level publications, in case later ones are diff specs + # TODO: get metadata on whether a level is a diff spec instead of making this assumption + if failure: + refs, failure = self.foreignRefs.queryRefs(text=text, linkType=linkType, spec=spec, status=status, statusHint=statusHint, linkFor=linkFor, linkForHint=linkForHint, explicitFor=explicitFor, export=export, ignoreObsoletes=True, latestOnly=False) + if failure == "text" or failure == "type": if linkType in ("property", "propdesc", "descriptor") and text.startswith("--"): # Custom properties/descriptors aren't ever defined anywhere