Bug 947767

Summary: [rfe] quickly check timestamps in a remote metalink to determine whether an update is due
Product: [Fedora] Fedora Reporter: Ales Kozumplik <akozumpl>
Component: librepoAssignee: Tomas Mlcoch <tmlcoch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jzeleny, tmlcoch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-20 19:29:13 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 Ales Kozumplik 2013-04-03 08:23:02 UTC
this is a request for API to quickly check whether there are new metadata avaialble on the mirrors.

Use case: there are metadata in the local cache synchronized 25 hours ago. The local policy says these are considered expired after 24 hours. With metalink repos, this doesn't necessarily mean we need to download repomd.xml or other metadata, we should just be able to compare checksums of the current repomd.xml to the checksum of the remote repomd.xml indicated in the metalink itself. Thus only the metalink needs to be refreshed.

The most practical approach in the librepo API I can think of would be to let librepo explicitly download and parse the metalink *only*. The client code can then decide what action will follow.

Comment 1 Tomas Mlcoch 2013-04-03 09:59:29 UTC
Hi, I've implemented new LRI_METALINK option which does exactly what you've specified. https://github.com/Tojaj/librepo/commit/68ca4e59825c72164cfad0c984e734adb9c65de5

Comment 2 Fedora Update System 2013-04-08 14:40:58 UTC
librepo-0.0.2-3.20130408git720d68d.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/librepo-0.0.2-3.20130408git720d68d.fc19

Comment 3 Fedora Update System 2013-04-20 19:29:14 UTC
librepo-0.0.2-3.20130408git720d68d.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.