Bug 1282250

Summary: RFE: don't consider remove operations as successful transactions
Product: [Fedora] Fedora Reporter: Marco Motta <marco.motta>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: john.floyd, jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-1.1.5-1.fc23 dnf-1.1.5-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-22 21:59:45 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 Marco Motta 2015-11-15 19:29:00 UTC
How reproducible:

From Fedora 23:
# dnf distro-sync --releasever 22 --allowerasing
(download of many GB of rpm)
Effect: package xxx conflict with yyy
...
(I am in a tty, and cannot scroll video)
# dnf remove yyy
# dnf distro-sync --releasever 22 --allowerasing
(download of many GB of rpm, for the same rpm!!!!)
Effect: package xxx2 conflict with yyy2
...
and again, and again...

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

dnf-1.1.3-1.fc23.noarch

Expected results:

rpm already downloaded must be used for the second execution of the same command, when I want install the same package that failed the first time.

Comment 1 Honza Silhan 2015-11-18 14:08:14 UTC
We can exclude `autoremove`, `remove` + operations without RPM transaction (`info`, `list`, ...) to not be considered to keepcache=0 transaction fail caching feature [1].

[1] http://dnf.readthedocs.org/en/latest/conf_ref.html?highlight=keepcache#main-options

Comment 2 Honza Silhan 2015-12-14 12:30:02 UTC
*** Bug 1290263 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2015-12-18 17:47:17 UTC
dnf-plugins-core-0.1.15-1.fc23 dnf-1.1.5-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-c72cd24fa0

Comment 4 Fedora Update System 2015-12-18 17:48:54 UTC
dnf-plugins-core-0.1.15-1.fc22 dnf-1.1.5-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-1bb112ccc6

Comment 5 Fedora Update System 2015-12-19 19:59:45 UTC
dnf-1.1.5-1.fc23, dnf-plugins-core-0.1.15-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update dnf dnf-plugins-core'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-c72cd24fa0

Comment 6 Fedora Update System 2015-12-22 15:35:26 UTC
dnf-1.1.5-1.fc22, dnf-plugins-core-0.1.15-1.fc22 has been pushed to the Fedora 22 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-2015-1bb112ccc6

Comment 7 Fedora Update System 2015-12-22 21:58:59 UTC
dnf-1.1.5-1.fc23, dnf-plugins-core-0.1.15-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-01-04 19:52:17 UTC
dnf-1.1.5-1.fc22, dnf-plugins-core-0.1.15-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.