Bug 1281305 - dnf overzealously discard cache during system-upgrade
Summary: dnf overzealously discard cache during system-upgrade
Keywords:
Status: CLOSED DUPLICATE of bug 1276886
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugin-system-upgrade
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-12 09:36 UTC by Arnaud Lacombe
Modified: 2015-11-12 14:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-12 14:58:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Arnaud Lacombe 2015-11-12 09:36:43 UTC
Description of problem:
When trying to upgrade from Fedora 23 from Fedora 22, if dnf encounters an error, trying to run *any* dnf command to fix the issue will discard the cache. My upgrade is downloading for the third time, and it is EXTREMELY frustrating.

Re-downloading is not only a waste of bandwidth, but a complete utter waste of time. I've got 3 machines to upgrade, it's gonna be a huge pain...

This is a regression over previous system upgrade using fedup.

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

How reproducible: always

Steps to Reproduce:
1. dnf system-upgrade download --releasever=23
2. dnf encounter a conflict
3. use dnf to resolve the conflict

Actual results:
Downloaded cache is discarded.

Expected results:
Downloaded cache is kept.

Additional info:

Comment 1 Arnaud Lacombe 2015-11-12 09:37:44 UTC
The description should read: "from Fedora 22 to Fedora 23". Sorry for the typo.

Comment 2 Arnaud Lacombe 2015-11-12 10:01:25 UTC
FWIW /etc/dnf/dnf.conf has a 'keepcache' options, but changing the configuration file seems overkill for what should be a temporary behavior.

How about introducing a --keepcache option to dnf ?

Comment 3 Will Woods 2015-11-12 14:58:09 UTC

*** This bug has been marked as a duplicate of bug 1276886 ***


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