Handle v0.1 imported associated meta

This commit is contained in:
Dan Hawkins 2021-12-18 19:22:20 +00:00
commit 670d7b22ab
2 changed files with 8 additions and 2 deletions

View file

@ -349,7 +349,7 @@ def artifactimport(meta, parentmeta, String parentmetapath, String childproduct,
echo "Finding meta associated with child: Product: ${childproduct} Sub-component: ${childsubcomponent}"
def findresults = parentmeta.findAssociatedMeta(parentmetapath, childproduct, childsubcomponent)
if (findresults.matchfound) {
childmeta = findresults.matchedmeta
childmeta = findresults.matchedmetaitem.metainfo
if (childmeta.releaseinfo.released) {
importoptions.releaserepo(childmeta.releaseinfo.releaserepoURL, childmeta.releasetag())
} else {

View file

@ -1018,7 +1018,13 @@ class MetaInfo extends GISJsonSerialised {
}
} else if (!relatedmetainfo.format || relatedmetainfo.format == '0.1') {
def MetaInfo othermeta = relatedmetainfo.meta
results = othermeta.walkrelated_v0_1(results.metacollection, results.comment, level + 1, gatheredpath, gatheredmetapath, limiteddepth, maxdepth - 1)
results = othermeta.walkrelated_v0_1(results.metacollection,
results.comment,
level + 1,
gatheredpath,
gatheredmetapath,
limiteddepth,
maxdepth - 1)
}
}
}