Bug 740086

Summary: zif chokes on "multi-line baseurls"
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: zifAssignee: Richard Hughes <hughsient>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: hughsient
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: 2011-09-21 12:21:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ralf Corsepius 2011-09-20 21:17:46 UTC
Description of problem:

[root]# zif update
...
Failed to download: failed to resolve in xxxxxx: failed to load metadata for xxxxxx: failed to download repomd.xml from baseurl: could not parse uri: repodata/repomd.xml

Version-Release number of selected component (if applicable):
zif-0.2.4-0.92.20110920git (Kevin K's repository)

Steps to Reproduce:

1. Add a *.repo to /etc/yum.repos.d/*.repo
which is using "multi-line baseurls", 
i.e. something similar to this:
...
[xxxxxx]
name=xxxxxx for Fedora $releasever - $basearch
baseurl=
        ftp://ftp1.foo.org/pub/foo/fedora/$releasever/$basearch
        ftp://ftp2.foo.org/pub/foo/fedora/$releasever/$basearch
        ftp://ftp3.foo.org/pub/foo/fedora/$releasever/$basearch
metadata_expire=1
...
2. run
zif update

Actual results:
yum flawlessly processes such *.repos, zif errors out with the error above.

Comment 1 Richard Hughes 2011-09-21 08:24:07 UTC
Yup, already fixed in:

commit b55044c8862036782d14b41e5c77b32c2fea8823
Author: Richard Hughes <richard>
Date:   Sun Sep 18 16:07:23 2011 +0100

    Support non-standard multiline repo files
    
    Yum supports multiline repo files in the format:
    
    [Fedora]
    name=Fedora
    baseurl=http://download1.fedoraproject.org/
        http://download2.fedoraproject.org/
    
    We need to parse the lines manually and make this acceptable to the
    GKeyFile parser.

Can you try a newer zif, for instance zif-0.2.4-0.93 or newer from http://people.freedesktop.org/~hughsient/fedora/15/SRPMS/ please. Thanks.