Bug 2000018

Summary: rpmlint -r: TypeError: 'PosixPath' object is not iterable
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: rpmlintAssignee: Tom "spot" Callaway <spotrh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: j, spotrh, tmz, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpmlint-2.1.0-4.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-24 20:27:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2021-09-01 08:21:01 UTC
rpmlint-2.1.0-2.fc36 fails to load a configuration file with -r option:

$ touch /tmp/empty
$ /usr/bin/rpmlint -r /tmp/empty x86_64/miniz-2.2.0-1.fc36.x86_64.rpm 
Traceback (most recent call last):
  File "/usr/bin/rpmlint", line 33, in <module>
    sys.exit(load_entry_point('rpmlint==2.1.0', 'console_scripts', 'rpmlint')())
  File "/usr/lib/python3.10/site-packages/rpmlint/cli.py", line 173, in lint
    lint = Lint(options)
  File "/usr/lib/python3.10/site-packages/rpmlint/lint.py", line 38, in __init__
    self._load_rpmlintrc()
  File "/usr/lib/python3.10/site-packages/rpmlint/lint.py", line 164, in _load_rpmlintrc
    for rcfile in self.options['rpmlintrc']:
TypeError: 'PosixPath' object is not iterable

This used to work. Maybe it's triggered by a new python (python3-3.10.0~rc1-1.fc35.x86_64).

Comment 1 Tom "spot" Callaway 2021-09-16 17:51:03 UTC
Hmm, I can reproduce this on Fedora 34's python3 (3.9.6), so I don't know if it ever worked with rpmlint2.

Comment 2 Fedora Update System 2021-09-17 15:19:46 UTC
FEDORA-2021-afb720d7bc has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-afb720d7bc

Comment 3 Fedora Update System 2021-09-17 19:42:26 UTC
FEDORA-2021-afb720d7bc has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-afb720d7bc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-afb720d7bc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-09-24 20:27:38 UTC
FEDORA-2021-afb720d7bc has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.