From 93f5fbe65d4be43e9bbdb32eb340449a8dffaf15 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 31 Jan 2024 15:18:23 -0700 Subject: [PATCH] make blank sources file --- pv2/importer/operation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index 757c92c..dfb8ac3 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -758,7 +758,10 @@ class GitImport(Import): raise err.ConfigurationError(f'sources files are not supported with {self.upstream_lookaside}') metafile_to_use = sources_file else: - raise err.GenericError('sources or metadata file NOT found') + #raise err.GenericError('sources or metadata file NOT found') + print('WARNING: There was no sources or metadata found. Making blank file.') + with open(metadata_file, 'w+') as metadata_handle: + pass sources_dict = self.parse_metadata_file(metafile_to_use)