Bug 1227053 - '--exclude' option empties whole transaction
'--exclude' option empties whole transaction
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
Unspecified Unspecified
low Severity unspecified
: ---
: ---
Assigned To: Michael Mráka
Fedora Extras Quality Assurance
: Reopened, Triaged
Depends On:
  Show dependency treegraph
Reported: 2015-06-01 16:28 EDT by Enrico Scholz
Modified: 2016-10-04 14:06 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-29 10:55:49 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
dnf upgrade --exclude XXXXXX -d10 (3.60 KB, text/plain)
2016-07-19 14:31 EDT, Enrico Scholz
no flags Details
dnf upgrade -d10 (8.37 KB, text/plain)
2016-07-19 14:35 EDT, Enrico Scholz
no flags Details
dnf upgrade --exclude XXXXXX --debugsolver (6.54 MB, application/x-xz)
2016-07-19 14:37 EDT, Enrico Scholz
no flags Details

  None (edit)
Description Enrico Scholz 2015-06-01 16:28:46 EDT
Description of problem:

When '--exclude' is used to exclude a single package during 'upgrade', the whole transaction is empty although there are other, not excluded packages are available.

# dnf upgrade --exclude XXXXXX 
Dependencies resolved.
Nothing to do.

# dnf upgrade
Dependencies resolved.
Install   3 Packages
Upgrade  21 Packages
Remove    3 Packages

Total download size: 55 M
Is this ok [y/N]:

# yum-deprecated upgrade --exclude fontconfig
Dependencies Resolved
Install   5 Packages
Upgrade  19 Packages
Remove    4 Packages

Total size: 55 M
Total download size: 54 M
Is this ok [y/d/N]: 

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


How reproducible:

Comment 1 Honza Silhan 2015-07-24 05:49:15 EDT
Can you share the exacts outputs (+ output of command without exclude option set) and attach the debugdata of dnf [1], please?

[1] https://github.com/rpm-software-management/dnf/wiki/Bug-Reporting#dependency-resolution-problem
Comment 2 Fedora Admin XMLRPC Client 2016-07-08 05:33:42 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 3 Fedora End Of Life 2016-07-19 10:27:32 EDT
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

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 4 Enrico Scholz 2016-07-19 14:30:18 EDT
still with dnf-1.1.9-2.fc23.noarch
Comment 5 Enrico Scholz 2016-07-19 14:31 EDT
Created attachment 1181763 [details]
dnf upgrade --exclude XXXXXX -d10
Comment 6 Enrico Scholz 2016-07-19 14:35 EDT
Created attachment 1181765 [details]
dnf upgrade  -d10
Comment 7 Enrico Scholz 2016-07-19 14:37 EDT
Created attachment 1181768 [details]
dnf upgrade --exclude XXXXXX --debugsolver
Comment 8 Michael Mráka 2016-07-20 05:36:38 EDT
There must be something in your configuration which triggers this bug because I can't reproduce it on fresh system:

#  dnf upgrade 
Transaction Summary
Install   3 Packages
Upgrade  65 Packages
Remove    3 Packages

Total download size: 88 M
Is this ok [y/N]: 

#  dnf upgrade --exclude XXX
Transaction Summary
Install   3 Packages
Upgrade  65 Packages
Remove    3 Packages

Total download size: 88 M
Is this ok [y/N]: 

# rpm -q dnf

Could you attach your repo configuration?
(e.g. output of dnf config-manager --dump \*)
Comment 9 Enrico Scholz 2016-07-25 07:18:11 EDT
it seems to be triggered by adding something like

| include=file:///etc/yum.repos.d/EXCLUDES-base

to a repository section (e.g. to [fedora] in /etc/yum.repos.d/fedora.repo).
Comment 10 Michael Mráka 2016-07-26 05:36:00 EDT
Three notes here:
- include means something different in dnf v1; you want to use
- even then there're bugs in include/exclude which has been fixed in dnf v2
  (bug 1055910, bug 1219867)
- and even then there was a bug in including config files, fixed now in
Comment 11 Igor Gnatenko 2016-07-29 10:55:49 EDT
Merged as part of DNF 2.0 release.

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