Bug 1339623 - [RFE] API for asking if a group is installed
Summary: [RFE] API for asking if a group is installed
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1066869
TreeView+ depends on / blocked
 
Reported: 2016-05-25 13:14 UTC by Tim Lauridsen
Modified: 2018-11-27 15:58 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-27 15:58:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tim Lauridsen 2016-05-25 13:14:48 UTC
Description of problem:

dnf has methods for install, remove & update groups (object)
dnf has methods for reading comps groups & categories
but there is no public API for check if a group is allready installed.

USECASE:

In a graphic package manager like yumex-dnf, show groups available on the system and give the user an option to install/remove them.
But it dont make much sense if the end user dont can see if a given group is all ready installed.

Version-Release number of selected component (if applicable):
1.1.9

Comment 1 Honza Silhan 2016-05-30 11:31:29 UTC
We will take a look how to make Group querying API more convenient (like package queries), refactor it and document it.

Comment 2 Tim Lauridsen 2016-05-31 07:13:17 UTC
Thanks

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

Comment 4 Jaroslav Mracek 2017-06-26 13:30:05 UTC
Please can you provide additional details? 

Do you search for something like in dnf.comps.Comps():

group_installed() - List of installed contained :class:`dnf.comps.Group` objects ordered by `display_order` tag defined in comps.xml file.

environments_installed - List of installed contained :class:`dnf.comps.Environment` objects ordered by `display_order` tag defined in comps.xml file.

Thanks for answer?

Comment 5 Jaroslav Mracek 2017-06-26 13:40:10 UTC
Or do you prefer function that returns installed, available groups like _group_lists in group command?

Comment 6 Fedora End Of Life 2017-07-25 20:53:41 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. 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 '24'.

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 24 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 7 Fedora End Of Life 2017-08-08 14:38:43 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 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 Eduard Čuba 2017-08-10 07:30:16 UTC
Necessary for Unified Software database.

Comment 9 Eduard Čuba 2017-08-10 12:23:16 UTC
Patch posted https://github.com/rpm-software-management/dnf/pull/892

Comment 10 Jan Kurik 2018-05-31 09:12:04 UTC
This bug is currently reported against a Fedora version which is already unsuported.
I am changing the version to '27', the latest supported release.

Please check whether this bug is still an issue on the '27' release.
If you find this bug not being applicable on this release, please close it.

Comment 12 Ben Cotton 2018-11-27 13:30:39 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. 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 '27'.

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 27 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 13 Jaroslav Mracek 2018-11-27 15:58:10 UTC
Closing due to reporter inactivity.


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