Bug 1059638 - [rfe] hawkey.Goal.problems should contain structures, not strings
Summary: [rfe] hawkey.Goal.problems should contain structures, not strings
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libdnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1183120 (view as bug list)
Depends On:
Blocks: 1145250 1156501
TreeView+ depends on / blocked
 
Reported: 2014-01-30 09:41 UTC by Daniel Mach
Modified: 2019-04-25 13:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-25 13:53:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Mach 2014-01-30 09:41:21 UTC
Description of problem:
Goal.problems contains only text descriptions of found problems.
I'm writing a new repoclosure tool and I need to parse the text to get information I need. I think 'problems' attribute should rather contain list of dicts or another structures.
If I understand it correctly, there's Goal.describe_problem() to provide text description of a problem.


Version-Release number of selected component (if applicable):
hawkey-0.4.8-1.fc20.x86_64
python-hawkey-0.4.8-1.fc20.x86_64

Actual results:
["nothing provides newt-python needed by authconfig-6.2.6-4.fc20.x86_64"]


Expected results:
[{"pkg": <pkg_object>, "category": "missing_dependency", "value": "newt-python"}]


Additional info:
Please note only 1 problem per package is returned.
When I disabled System repo, I only got following problems:
["nothing provides /bin/sh needed by authconfig-6.2.6-4.fc20.x86_64"]
There's nothing about missing python, newt-python or anything else.

Comment 1 Ales Kozumplik 2014-01-30 09:46:05 UTC
Dan, what precisely would you do with the 'list of dicts' if hawkey provided them?

Comment 2 Daniel Mach 2014-01-30 10:48:30 UTC
Current (yum-based) repoclosure returns following output:
package: authconfig-6.2.6-4.fc20.x86_64 from foo
  unresolved deps: 
     rtld(GNU_HASH)
     python(abi) = 0:2.7
     python
     pam >= 0:0.99.10.0
     newt-python
     libresolv.so.2(GLIBC_2.2.5)(64bit)
     libresolv.so.2()(64bit)
     libpwquality > 0:0.9
     libc.so.6(GLIBC_2.4)(64bit)
     /usr/bin/python
     /usr/bin/openssl
     /bin/sh

I need the structures to group the problems and either print them in similar way as repoclosure does or return them as another structure for further processing.

Comment 3 Ales Kozumplik 2014-01-30 11:59:00 UTC
Understood, it's probably a legit use case. Let's track this at a low prio.

Comment 4 Honza Silhan 2015-05-20 13:21:10 UTC
*** Bug 1183120 has been marked as a duplicate of this bug. ***

Comment 5 Fedora End Of Life 2015-05-29 10:44:39 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora Admin XMLRPC Client 2016-07-08 09:24:31 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora End Of Life 2016-07-19 20:46:47 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 Jaroslav Mracek 2019-04-13 15:35:11 UTC
I would recommend to close the bug report and implement it on direct request from API user to provide exactly what is needed. Please do you agree with me?

Comment 9 Daniel Mach 2019-04-25 13:53:22 UTC
Yes, I'm fine with that.


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