Bug 1718768

Summary: AttributeError: 'Goal' object has no attribute 'problems'
Product: [Fedora] Fedora Reporter: Bruno Goncalves <bgoncalv>
Component: rpmdeplintAssignee: Dan Callaghan <djc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: djc, fzatlouk, mvadkert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpmdeplint-1.4-9.fc30 rpmdeplint-1.4-9.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-11 02:41:39 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 Bruno Goncalves 2019-06-10 07:43:19 UTC
Description of problem:

rpmdeplint raises this exception when checking conflicts and if found some conflicts with the package.

Version-Release number of selected component (if applicable):
rpmdeplint-1.4-8.fc30.noarch

How reproducible:
100%

Steps to Reproduce:
1.run rpmdeplint check-conflicts with rpms that have a valid conflict.


Actual results:
It raises the exception
Traceback (most recent call last):
  File "/usr/bin/rpmdeplint", line 11, in <module>
    load_entry_point('rpmdeplint==1.4', 'console_scripts', 'rpmdeplint')()
  File "/usr/lib/python3.7/site-packages/rpmdeplint/cli.py", line 232, in main
    return args.func(args)
  File "/usr/lib/python3.7/site-packages/rpmdeplint/cli.py", line 87, in cmd_check_conflicts
    conflicts = analyzer.find_conflicts()
  File "/usr/lib/python3.7/site-packages/rpmdeplint/__init__.py", line 355, in find_conflicts
    if not self._packages_can_be_installed_together(package, conflicting):
  File "/usr/lib/python3.7/site-packages/rpmdeplint/__init__.py", line 266, in _packages_can_be_installed_together
    if g.problems and 'conflicts' in g.problems[0]:
AttributeError: 'Goal' object has no attribute 'problems'

Expected results:
Report the conflict it found.

Comment 2 Fedora Update System 2019-06-10 11:25:12 UTC
FEDORA-2019-aaaf8a7b5a has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-aaaf8a7b5a

Comment 3 FrantiĊĦek Zatloukal 2019-06-10 11:27:31 UTC
Bruno,

can you try https://bodhi.fedoraproject.org/updates/FEDORA-2019-aaaf8a7b5a (and give it a karma if it works for you)?

Thanks!

Comment 4 Bruno Goncalves 2019-06-10 11:41:52 UTC
Thanks it works for me.

Tested with rpmdeplint-1.4-9.fc30.noarch

Comment 6 Fedora Update System 2019-06-11 01:45:27 UTC
rpmdeplint-1.4-9.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-10a9a164fb

Comment 7 Fedora Update System 2019-06-11 02:41:39 UTC
rpmdeplint-1.4-9.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2019-06-20 03:52:37 UTC
rpmdeplint-1.4-9.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.