Bug 249797

Summary: yum-presto: variable expansion fails
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: yum-prestoAssignee: Jonathan Dieter <jonathan>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: james.antill
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-30 19:31:18 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 Rex Dieter 2007-07-27 02:43:54 UTC
For a private repo of mine, I've always pointed yum to a mirror list, something
like, say:
mirrorlist=http://apt.kde-redhat.org/apt/kde-redhat/fedora/mirrors-stable

Which contains entries that contain/use variables ($releasever, $arch), ie,
http://apt.kde-redhat.org/apt/kde-redhat/fedora/$releasever/$basearch/stable

Using yum-3.2.2-1.fc7, this no longer works, yum tries to use
ttp://.../fedora/%24releasever/%24basearch/stable/repodata/repomd.xml
which, of course, doesn't work.

Comment 1 Rex Dieter 2007-07-27 12:04:31 UTC
OK, totally creepy.  Tried duplicating this on another f7 box this morning, and
couldn't.  it works.  box boxes have updates-testing enabled.

Comment 2 Rex Dieter 2007-07-27 12:10:45 UTC
on the box that fails, it's not just the mirrorlist, substituting
baseurl=http://apt.kde-redhat.org/apt/kde-redhat/fedora/$releasever/$basearch/stable
fails too, with
Error: Cannot open/read repodata/repomd.xml file ...




Comment 3 Rex Dieter 2007-07-27 12:33:40 UTC
Arg, cast the gremlins away!

I just changed to 
baseurl=http://apt.kde-redhat.org/apt/kde-redhat/fedora/7/i386/stable
to verify my sanity (and it works), changed back to
baseurl=http://apt.kde-redhat.org/apt/kde-redhat/fedora/$releasever/$basearch/stable
and now that works too! ??  It didn't just minutes before. (I run 'rm -rf
/var/cache/yum/*' in between invocations for extra paranoia).

So trying,
mirrorlist=http://apt.kde-redhat.org/apt/kde-redhat/fedora/mirrors-stable
but that (still) failed. ):

On a whim, tried disabling yum-presto, bingo! fixed!.  reassigning.

$ rpm -q yum-presto
yum-presto-0.3.10-1.fc7.noarch
btw.




Comment 4 Jonathan Dieter 2007-07-30 19:31:18 UTC
This bug shouldn't exist in yum-presto 0.4.0 (the version in Rawhide that's been
pretty much rewritten).

Yum-presto 0.3.x re-used some older yum code that didn't properly parse mirrorlists.

I'm going to close this as Rawhide, but if you want me to fix it in F7 (which
isn't trivial), please re-open the bug.