Don't create folders for imported artifacts that don't have meta

This commit is contained in:
Dan Hawkins 2021-12-20 13:52:31 +00:00
commit c9eb0c698c

View file

@ -825,16 +825,15 @@ class MetaInfo extends GISJsonSerialised {
if (script.fileExists(importedmetafile)) {
script.echo("Deserialising meta at file: ${importedmetafile} (destpath: ${destpath})")
mi.deserialiseJson(importedmetafile)
RelatedMetaInfo rmi = new RelatedMetaInfo_v0_2(script, importedmetafile, adjustedpath)
if (appendtoparentmeta) {
associatedmeta.add(rmi)
}
} else {
script.echo("Could not deserialise meta at file: ${importedmetafile} (destpath: ${destpath})- Does not exist")
mi.addConfigurationInfo('', givenRepo, givenRevision, givenSHA)
}
RelatedMetaInfo rmi = new RelatedMetaInfo_v0_2(script, importedmetafile, adjustedpath)
if (appendtoparentmeta) {
associatedmeta.add(rmi)
}
return mi
}