mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-23 13:41:26 +00:00
hotfix: make sure modulemd.src.txt is original
This commit is contained in:
parent
a4136a972b
commit
4fc3f849e1
@ -1080,10 +1080,11 @@ class ModuleImport(Import):
|
|||||||
module_yaml.write(content_new)
|
module_yaml.write(content_new)
|
||||||
module_yaml.close()
|
module_yaml.close()
|
||||||
|
|
||||||
# Write to the sources, should be the same content
|
# Write to the sources. It needs to be the original content.
|
||||||
with open(f'{dest_git_repo_path}/SOURCES/modulemd.src.txt', 'w') as module_yaml:
|
shutil.copy(modulemd_file, f'{dest_git_repo_path}/SOURCES/modulemd.src.txt')
|
||||||
module_yaml.write(content_new)
|
#with open(f'{dest_git_repo_path}/SOURCES/modulemd.src.txt', 'w') as module_yaml:
|
||||||
module_yaml.close()
|
# module_yaml.write(content_new)
|
||||||
|
# module_yaml.close()
|
||||||
|
|
||||||
self.generate_metadata(dest_git_repo_path, self.module_name, {})
|
self.generate_metadata(dest_git_repo_path, self.module_name, {})
|
||||||
gitutil.add_all(dest_repo)
|
gitutil.add_all(dest_repo)
|
||||||
|
Loading…
Reference in New Issue
Block a user