Bug 988296

Summary: rfe: allow a list of urls for the handle.url parameter
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: librepo-1.0.0-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-05 01:28:31 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:
Bug Depends On:    
Bug Blocks: 1002508    

Description Ales Kozumplik 2013-07-25 09:19:13 UTC
Description of problem:

h.url = [URL]

currently causes an exception:

TypeError: Only string or None is supported with this option

The reason why I'd want this is that sometimes we know multiple URLs for a given repo (e.g. we resolved them from a mirrorlist through some other means) and if handle accepts only one url which is currently down it will fail we have to micromanage around it by creating new handle with the next url and retrying the operation.

Comment 1 Tomas Mlcoch 2013-08-12 08:18:39 UTC
Fix was pushed to the master branch https://github.com/Tojaj/librepo/commit/0fbe1c3b96f21c87a6ad1c0ec7fd3ec4c6b05cad

Comment 2 Ales Kozumplik 2013-08-16 11:18:40 UTC
Thanks Tomas.

Do you plan to make a build with this patch for both F19 and rawhide? Let's coordinate the date on that.

Comment 3 Fedora Update System 2013-09-03 08:47:05 UTC
librepo-1.0.0-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/librepo-1.0.0-1.fc19

Comment 4 Fedora Update System 2013-09-03 22:31:42 UTC
Package librepo-1.0.0-1.fc19, dnf-0.3.11-2.git54f55e0.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing librepo-1.0.0-1.fc19 dnf-0.3.11-2.git54f55e0.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15734/dnf-0.3.11-2.git54f55e0.fc19,librepo-1.0.0-1.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-09-05 01:28:31 UTC
librepo-1.0.0-1.fc19, dnf-0.3.11-2.git54f55e0.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.