diff --git a/meta/folder.groovy b/meta/folder.groovy index d5b6b7f..c3db541 100644 --- a/meta/folder.groovy +++ b/meta/folder.groovy @@ -1029,9 +1029,9 @@ class MetaInfo extends GISJsonSerialised { return [ 'metacollection' : results.metacollection, 'comment': results.comment ] } - def allrelatedmeta() { + def allrelatedmeta(String metapath) { ArrayList metacollection = new ArrayList() - return walkrelated(metacollection) + return walkrelated(metacollection, '', 0, '', metapath) } ArrayList releasewalker(int maxdepth, String startpath = '', String startmetapath = '') { @@ -1082,12 +1082,12 @@ class MetaInfo extends GISJsonSerialised { return new MetaInfo(script) } - def findAssociatedMeta(String productname, String subcomponentname) { + def findAssociatedMeta(String parentmetapath, String productname, String subcomponentname) { def results = [ 'matchedmetaitem' : new CollectedMeta(this), 'matchfound' : false ] - def walkresults = allrelatedmeta() + def walkresults = allrelatedmeta(parentmetapath) for (dependentmetaitem in walkresults.metacollection) { script.echo("Comparing: ${dependentmetaitem.metainfo.productinfo.productname} ${dependentmetaitem.metainfo.productinfo.subcomponentname}") if (dependentmetaitem.metainfo.productinfo.productname == productname &&