This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 162846 - yum checks wrong package for $releasever
yum checks wrong package for $releasever
Status: CLOSED DUPLICATE of bug 161071
Product: Fedora
Classification: Fedora
Component: up2date (Show other bugs)
4
All Linux
medium Severity high
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-10 07:08 EDT by Henning Schmiedehausen
Modified: 2014-01-21 17:52 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-12 02:39:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Our internal definition for the "Fedora Extras" Repository (228 bytes, text/plain)
2005-07-10 11:39 EDT, Henning Schmiedehausen
no flags Details

  None (edit)
Description Henning Schmiedehausen 2005-07-10 07:08:49 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4

Description of problem:
On fedora, yum should check fedora-release to set the value of the $releasever
variable. This does work on FC3. However, on FC4, there is "redhat-relase" as distroverpkg instead of "fedora-release"

Version-Release number of selected component (if applicable):
yum-2.3.2-7

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora Core 4 (do not upgrade!)
2. less /etc/yum.conf
3. search for distroverpkg
  

Actual Results:  Is "redhat-release"

Expected Results:  Should be "fedora-release"

Additional info:

I set the level of this bug to "high" because it prevents updates from yum repositories.

Yum seems to fall back to some internal default and uses "3" as the version and tries subsequently to update from a Core/3 repository...
Comment 1 Seth Vidal 2005-07-10 10:05:41 EDT

*** This bug has been marked as a duplicate of 123888 ***
Comment 2 Henning Schmiedehausen 2005-07-10 11:38:44 EDT
I admit, I was wrong and I opened it for the wrong component. It seems to be an
up2date bug. I attached the "intermeta-fedora-extras.repo" to this bug report.
There definitely is something fishy in up2date which lets it fall back to "3" as
releasever. If I replace the "$releasever" reference in the repo file with a
hard coded "4", then everything works fine.


# up2date -i yap

initRepo
Baseurl(s) for repo: ['http://yum.intermeta.de/yum/Fedora/Core/4/extras/i386/']
Setting up Package Sacks
Excluding Incompatible Archs
Finished
Setting up Package Sacks
Excluding Incompatible Archs
Finished

Fetching Obsoletes list for channel: intermeta-extras...
initRepo

Fetching obsoletes list for
http://yum.intermeta.de/yum/Fedora/Core/3/extras/i386/...

Fetching rpm headers...
initRepo
bytes=440-32978
There was a fatal error communicating with the server. The message was:

An HTTP error occurred:
URL: http://yum.intermeta.de/yum/Fedora/Core/3/extras/i386//yap-4.5.5-6.fc4.i386.rpm
Status Code: 404
Error Message: Not Found

Same configuration with yum:

# yum install yap
Setting up repositories
intermeta-extras          100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yap to pack into transaction set.
yap-4.5.5-6.fc4.i386.rpm  100% |=========================|  32 kB    00:00
---> Package yap.i386 0:4.5.5-6.fc4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 yap                     i386       4.5.5-6.fc4      intermeta-extras  2.3 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): yap-4.5.5-6.fc4.i3 100% |=========================| 2.3 MB    00:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: yap                          ######################### [1/1]

Installed: yap.i386 0:4.5.5-6.fc4
Complete!

Comment 3 Henning Schmiedehausen 2005-07-10 11:39:54 EDT
Created attachment 116571 [details]
Our internal definition for the "Fedora Extras" Repository
Comment 4 Paul Howarth 2005-07-11 12:24:24 EDT
Looks to me like a duplicate of Bug #161071
Comment 5 Henning Schmiedehausen 2005-07-12 02:39:47 EDT
yep, that is right.

*** This bug has been marked as a duplicate of 161071 ***

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