Bug 1437884

Summary: [RFE] Selectively ignore weak dependency when recommended by specific package
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, jmracek, jpokorny, packaging-team-maint, rpm-software-management, samuel-rhbugs, vmukhame
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-18 13:45:40 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 Vít Ondruch 2017-03-31 12:12:15 UTC
Description of problem:
Disable installation of specific soft dependency chain. Although there is currently possible to "exclude=python-systemd-doc", this means to exclude such package forever. But I'd like to exclude the soft dependency only if it is pulled in by specific package, e.g. python3-systemd in this case. 

It is quite annoying that I need to exclude such package every time I am updating python3-systemd, but in other cases (I don't have better example in my hand right now) when it is recommended by other package, I might be interested to pull this package in.


Version-Release number of selected component (if applicable):
$ rpm -q dnf
dnf-2.1.0_1-28g5145f58.fc27.noarch


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
The weak dependencies must be disabled again and again.


Expected results:
I'd like to be able to specify that if package A recommends package B, I'd like to always ignore such recommendation. But I might want to consider installation of B when package C recommends it.


Additional info:

Comment 1 Jaroslav Mracek 2017-04-18 13:45:40 UTC
I am sorry Vit, but I have to disappoint you. I have tried to fix the issue in https://github.com/rpm-software-management/dnf/pull/774, but during discussion it appears a problem with too difficult implementation to do selective handling of weak-deps. Unfortunately your request is even more specific that original one in https://bugzilla.redhat.com/show_bug.cgi?id=1278196. Therefore I have to to close it as deferred, therefore in future we can reopen it when we will have possibilities to solve such a complex request.