make blank sources file

This commit is contained in:
Louis Abel 2024-01-31 15:18:23 -07:00
parent 95c701aa38
commit 93f5fbe65d
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -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)