Skip to content

I had to patch dir2module.py to get it to complete #49

Open
@cpsource

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions