Bug 1069538 - DNF doesn't support "never" or "-1" for metadata_expire option unlike yum
Summary: DNF doesn't support "never" or "-1" for metadata_expire option unlike yum
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf   
(Show other bugs)
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 871892
TreeView+ depends on / blocked
Reported: 2014-02-25 08:50 UTC by Hedayat Vatankhah
Modified: 2014-09-30 23:42 UTC (History)
4 users (show)

Fixed In Version: dnf-0.4.17-1.fc20
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-03-08 03:35:21 UTC
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Hedayat Vatankhah 2014-02-25 08:50:05 UTC
Description of problem:
I always create a repo file for Fedora DVD, and set its metadata_expire to -1 so that its metadata is never expired. "never" can be used instead of -1 too. However, dnf doesn't support -1/never and always tries to download the metadata for such a repository.

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

Comment 1 Ales Kozumplik 2014-02-26 15:36:28 UTC
Hello, the issue was fixed upstream in 4b27df0. The patch also includes update to 'metadata_expire' documentation. You can test the change once respective build appears on our continuous integration server:


or with dnf-0.4.17 once released.

Thanks for the report.

Comment 2 Fedora Update System 2014-03-05 12:57:17 UTC
dnf-0.4.17-1.fc20 has been submitted as an update for Fedora 20.

Comment 3 Fedora Update System 2014-03-06 08:13:59 UTC
Package dnf-0.4.17-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.17-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-03-08 03:35:21 UTC
dnf-0.4.17-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

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