lsedlar / pungi

Forked from pungi 8 years ago
Clone

2dfb1cd pkgset: Skip adding modulemd if there is none

Authored and Committed by lsedlar 4 years ago
    pkgset: Skip adding modulemd if there is none
    
    When libmodulemd is available, but the compose contains no modules, we
    don't want to add the modular metadata anywhere. This patch actually
    avoids a crash as `ModuleIndex.dump_to_string()` will return `None` if
    there is no data.
    
    JIRA: COMPOSE-3662
    Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
    
        
file modified
+5 -1