#2643 CLI rpminfo does not raise exception for non-existing nvra
Closed: Fixed by tkopecek. Opened by mfilip.

rpminfo does not rais exception for non-existing nvra. it uses only print for error message

koji rpminfo --buildroots non-exist-nvra.arch
No such rpm: non-exist-nvra.arch
...
        if info is None:
            print("No such rpm: %s\n" % rpm)
            continue
...

I don't think this is a bug, though I guess the client is inconsistent about the way it deals with nonexistent values like this. I would say the only real issue here is that the command should return a non-zero code if one of the rpms given on the command line is invalid.

Metadata Update from @mikem:
- Custom field Size adjusted to None

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.25

Metadata Update from @mfilip:
- Issue tagged with: testing-done

Commit ea5f4621 fixes this issue

Commit 0c9c8c6a fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2643

Please continue any further discussion there.

Metadata
Related Pull Requests