Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid crash of fatbuildrctl when spec not found #165

Closed
rezib opened this issue Mar 25, 2024 · 0 comments
Closed

Avoid crash of fatbuildrctl when spec not found #165

rezib opened this issue Mar 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rezib
Copy link
Contributor

rezib commented Mar 25, 2024

fatbuildrctl crashes when RPM spec file is not found:

$ fatbuildrctl --uri https://build.rackslab.io/devs build -a firehpc -d el8 --sources 1.1.0a1.dev1285@. 
Traceback (most recent call last):
  File "/usr/bin/fatbuildrctl", line 33, in <module>
    sys.exit(load_entry_point('Fatbuildr==2.1.0.dev131', 'console_scripts', 'fatbuildrctl')())
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/__init__.py", line 34, in run
    cls()
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 574, in __init__
    args.func(args)
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 1152, in _run_build
    ).architecture_dependent
  File "/usr/lib/python3/dist-packages/fatbuildr/artifact.py", line 280, in architecture_dependent
    with open(check_file, 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/home/remi/Documents/git/products/hpck.it/firehpc/rpm/firehpc.spec'

This shouldn't happen.

@rezib rezib added the bug Something isn't working label Mar 25, 2024
@rezib rezib added this to the v2.1.0 milestone Mar 25, 2024
@rezib rezib self-assigned this Mar 25, 2024
@rezib rezib closed this as completed in f586721 Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant