Bug 1285316 - metadata_expire=never does not work since Fedora 23
Summary: metadata_expire=never does not work since Fedora 23
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-25 11:53 UTC by Michael S. Tsirkin
Modified: 2016-01-05 10:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-04 13:58:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael S. Tsirkin 2015-11-25 11:53:12 UTC
Description of problem:
I have metadata_expire=never in both dnf.conf and
yum.conf. Neither seems to have the desired effect.
Under Fedora 22, the effect is that dnf
can function much like apt:
dnf makecache downloads data, dnf update
updates it, dnf install downloads and install package
all without bothering to touch metadata.


Version-Release number of selected component (if applicable):
dnf-1.1.4-1.fc23.noarch

How reproducible:
always

Steps to Reproduce:
1. set  metadata_expire=never 
2. run dnf makecache
3. wait a day or two

Actual results:
dnf starts loading metadata (I'm guessing - it's showing
progress bar) from all its sources.


Expected results:
dnf update uses cached metadata since it never expires

Additional info:
this is a regression: worked fine under Fedora 22.

Comment 1 Honza Silhan 2016-01-04 13:58:42 UTC

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

Comment 2 Jaroslav Mracek 2016-01-05 10:52:09 UTC
I have try to reproduce and I have found, that in this case it is probably not a bug. I think that you have metadata_expire=some_number in .repo file that describe repository. If this option is present, it overwrites options in dnf.conf file. Please if this is not your case, feel free to reopen the bug report.


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