modulemd-tools
modulemd-tools copied to clipboard
I had to patch dir2module.py to get it to complete
Here's the patch:
diff --git a/dir2module/dir2module/dir2module.py b/dir2module/dir2module/dir2module.py
index 6643a83..e639bba 100755
--- a/dir2module/dir2module/dir2module.py
+++ b/dir2module/dir2module/dir2module.py
@@ -113,8 +113,8 @@ class Module(ModuleBase):
for pkglicense in self.licenses:
mod_stream.add_content_license(pkglicense)
- for nevra in self.package_nevras:
- mod_stream.add_rpm_artifact(nevra)
+# for nevra in self.package_nevras:
+# mod_stream.add_rpm_artifact(nevra)
dependencies = Modulemd.Dependencies()
for depname, depstream in self.requires.items():
Apparently nevras is an empty list, so add_rpm_artifact dies.
I'm hacking yes, but if the list is null, I don't need the code right?
Can you provide a proper fix?
Can you provide a proper fix?
Sure, the fix should be easy. But this never happened to me. Can you please point me to a package that has empty NEVRAs list? I would like to reproduce the issue somehow.