Bug 2000018 - rpmlint -r: TypeError: 'PosixPath' object is not iterable
Summary: rpmlint -r: TypeError: 'PosixPath' object is not iterable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-01 08:21 UTC by Petr Pisar
Modified: 2021-09-24 20:27 UTC (History)
4 users (show)

Fixed In Version: rpmlint-2.1.0-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-24 20:27:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpmlint pull 704 0 None open fix loading of rpmlintrc from cmdline 2021-09-16 18:50:36 UTC

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.


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