#1078 _createrepo fails when no components declared
Closed: Fixed 5 years ago Opened 5 years ago by mhonek.

The modulemd specification denotes components section as optional, however fedpkg module_build_local fails in MockModuleBuilder.py:181 when no components section is declared in modulemd yaml file - it is trying to run rpm ... -qp, that is without any rpm names passed to the command. Handling this case "around the place" in the MockModuleBuilder.py source file seems to work, the repo is produced with no rpms and trying to install the module works ok, too.

2018-11-13 16:15:25,931 - PoolThread-twisted.internet.reactor-0 - module_build_service - ERROR - Could not process message handler. See the traceback.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/module_build_service/scheduler/consumer.py", line 234, in process_message
    further_work = handler(conf, session, msg) or []
  File "/usr/lib/python3.6/site-packages/module_build_service/scheduler/handlers/modules.py", line 133, in done
    builder.finalize()
  File "/usr/lib/python3.6/site-packages/module_build_service/builder/MockModuleBuilder.py", line 517, in finalize
    self._createrepo(include_module_yaml=True)
  File "/usr/lib/python3.6/site-packages/module_build_service/builder/MockModuleBuilder.py", line 189, in _createrepo
    raise RuntimeError("rpm -qp returned an unexpected number of lines")
RuntimeError: rpm -qp returned an unexpected number of lines

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1080 Merged 5 years ago