Bug 947767 - [rfe] quickly check timestamps in a remote metalink to determine whether an update is due
Summary: [rfe] quickly check timestamps in a remote metalink to determine whether an u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: librepo
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mlcoch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-03 08:23 UTC by Ales Kozumplik
Modified: 2014-09-30 23:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-20 19:29:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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