_yaml.py, source.py: Fix tracking of refs inside conditions
Description
This fixes a situation where you might have had an element of the form:
kind: import
sources:
- kind: git
(?):
- cheese:
url: git://git.gitano.org.uk/gitano.git
track: master
ref: 78a5caf1e619dca3924feed74a03291c2e651c34
- not cheese:
url: http://git.gitano.org.uk/gall.git
track: master
ref: 43816e976ca1008bad55ed5e01974e0709980418
If you did bst source track test.bst you'd get a new ref: ... at the top level of the source entry.
Changes proposed in this merge request:
- Fix the above