Skip to content

Commit

Permalink
Handle foreign exported links in the case of foreign diff specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Jan 24, 2020
1 parent 71e151f commit 7ecd94c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bikeshed/refs/ReferenceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,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
Expand Down

0 comments on commit 7ecd94c

Please sign in to comment.