#1 KYUM appears to overwrite .repo file when repo is enabled

open-later
nobody
None
5
2014-07-26
2005-11-20
ClaudeJones
No

When activating the testing section of the Livna repo,
the repo file is mangled. This is the livna.repo file:
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/RPMS.lvn
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/RPMS.lvn
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[livna-testing]
name=Livna for Fedora Core $releasever - $basearch -
Testing
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn-testing
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/RPMS.lvn-testing
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/RPMS.lvn-testing
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn-testing
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-testing
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

Livna-testing is not enabled.
If I enable it, I get a fail to find repo error, and
opening the file yields the following:

[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[livna-testing]
name=Livna for Fedora Core $releasever - $basearch -
Testing
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

If I don't enable the testing repo, the access of livna
is successful. I tested the same livna.repo file with
Yumex, and it didn't have any problem with the file,
and enabling testing didn't produce errors or a mangled
repo file.

Discussion

  • Steffen Offermann

    • status: open --> open-later
     
  • Steffen Offermann

    Logged In: YES
    user_id=1315806

    This is not really a bug. Kyum manages the repo files a bit
    differently than yum or yumex in that it does not allow more
    than one item for "baseurl". If you want to assign more than
    one URL, you have to put them in the mirror file which can
    by edited from inside kyum.

    This has nothing to do with testing enabled or not. KYum
    always rewrites the repo file when something gets changed.

    I might change this behaviour someday, but currently I'm
    afraid I won't have too much time available.

    Regards,
    Steffen O.

     
  • Paul Howarth

    Paul Howarth - 2006-05-11

    Logged In: YES
    user_id=1092500

    This *is* really a bug because, as "man yum.conf" will
    confirm, multi-baseurl repos are perfectly legitimate:

    baseurl
    Must be a URL to the directory where the yum
    repository’s ‘repodata’ directory lives. Can be an
    http://, ftp:// or file:// URL. You can specify
    multiple URLs in one baseurl statement. The best
    way to do this is like this:
    [repositoryid]
    name=Some name for this repository
    baseurl=url://server1/path/to/repository/
    url://server2/path/to/repository/
    url://server3/path/to/repository/

    If you list more than one baseurl= statement in a
    repository you will find yum will ignore the
    earlier ones and probably act bizarrely. Don’t do
    this, you’ve been warned.

    If kyum needs to manipulate repo files, it should do so in a
    way that honors the published format of that file and not
    mangle a perfectly valid file, which then breaks all other
    programs that need to use that file. IMHO.

     
  • Jochen Schmitt

    Jochen Schmitt - 2006-05-14

    Logged In: YES
    user_id=258636

    This problem was complaint on Bug #190886 of
    http://bugzilla.redhat.com.

    this is realy a problem, becouse the user expected, that the
    repo files which will be delivered by livna should work on KYum.

     
  • Jochen Schmitt

    Jochen Schmitt - 2006-07-04

    Logged In: YES
    user_id=258636

    I hava add the bug #1084 on bugzilla.livna.org to suggest
    the use of a mirrorlist tag instead of multiple URL in a
    BaseURL tag.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks