Project

General

Profile

« Previous | Next » 

Revision 6ee6f329

Added by Evgeni Golov over 5 years ago

Make the Requires script more robust if manifest.json cannot be found (#3271)

When building foreman itself, we call both, the requires and the
provides script, but as foreman is not installed when building foreman,
the requires script can't find the installed foreman's manifest.json and
errors:

BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR: File "/usr/lib/rpm/foreman.req", line 64, in <module>
BUILDSTDERR: result.update(parse_manifest(FOREMAN_MANIFEST))
BUILDSTDERR: File "/usr/lib/rpm/foreman.req", line 37, in parse_manifest
BUILDSTDERR: with open(manifest_path) as fh:
BUILDSTDERR: IOError: [Errno 2] No such file or directory: '/var/lib/foreman/public/webpack/manifest.json'

While not a real problem (rpm handles the error gracefuly), the output
is missleading and might cause confusion when debugging build errors.

  • added
  • modified
  • copied
  • renamed
  • deleted