Bug 2016616 - `fedpkg lint -i/--info` doesn't work (because `rpmlint -i` now does something else?)
Summary: `fedpkg lint -i/--info` doesn't work (because `rpmlint -i` now does something...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fedpkg
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik Rumian
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-22 10:21 UTC by Ankur Sinha (FranciscoD)
Modified: 2022-09-06 23:08 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-06 23:08:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2021-10-22 10:21:48 UTC
Description of problem:
When using the `-i` or `--info` option with `fedpkg lint`, one now gets errors of this form:

```
(none): E: there is no installed rpm "/home/asinha/dump/python-pypesto/python-pypesto.spec".
(none): E: there is no installed rpm "/home/asinha/dump/python-pypesto/python-pypesto-0.2.7-1.fc34.src.rpm".
(none): E: there is no installed rpm "/home/asinha/dump/python-pypesto/noarch/python3-pypesto-0.2.7-1.fc34.noarch.rpm".
There are no files to process nor additional arguments.
Nothing to do, aborting.
```

This seems to be because `rpmlint -i` now is no longer for "information", it's to check installed packages. 

```
rpmlint --help
...
 -i INSTALLED [INSTALLED ...], --installed INSTALLED [INSTALLED ...]
                        installed packages to be validated by rpmlint
```

To get informative output, we need to now use `-v` or `--info`:

```
  -v, --verbose, --info
                        provide detailed explanations where available
```



Version-Release number of selected component (if applicable):
$ rpm -q fedpkg rpmlint
fedpkg-1.41-1.fc35.noarch
rpmlint-2.1.0-5.fc35.noarch


How reproducible:
Always

Steps to Reproduce:
1. run `fedpkg --release fXX lint -i` or `--info` in a package directory
2.
3.

Actual results:
Errors as shown above

Expected results:
Should run rpmlint and give informative output.

Additional info:

Comment 1 Ondřej Nosek 2022-03-09 15:03:12 UTC
https://pagure.io/rpkg/pull-request/607

Comment 2 Fedora Update System 2022-09-06 23:07:32 UTC
FEDORA-2022-dd5443312c has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-dd5443312c

Comment 3 Fedora Update System 2022-09-06 23:08:40 UTC
FEDORA-2022-dd5443312c has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.