def _is_module(pkg):
    """ Is this a module pacakge. Eg. foo-1-2.module+el8.1.0+2940+f62455ee.noarch
        or for el9: foo-1-2.module_el9+96+b062886b """
    return '.module+' in pkg.release or '.module_' in pkg.release