Bug 740086 - zif chokes on "multi-line baseurls"
Summary: zif chokes on "multi-line baseurls"
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: zif
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-20 21:17 UTC by Ralf Corsepius
Modified: 2011-09-21 12:21 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-21 12:21:05 UTC


Attachments (Terms of Use)

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@hughsie.com>
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.


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