[WBEL-devel] rhn-applet Stuck?
Kevin Ediger
kediger@licor.com
Tue, 23 Dec 2003 09:02:15 -0600
This is a multi-part message in MIME format.
--------------060608060006080907030704
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
I agree. I noticed that whitebox-release already includes the file
/etc/redhat-release. What is missing is the 'Provides: redhat-release' in
the SPEC file.
rhn-applet tries to look up the version number of the _package_ named
redhat-release to see if the rhn-applet cache is valid. Adding the Provides
directive won't fix this. But then again, Fedora seems to be working fine,
so maybe this change is good enough.
I've included a patch for the whitebox-release spec file. If this patch is
used, my previous rhn-applet patch is unecessary (stick with the updated
Fedora rhn-applet package 2.1.4-3).
It gives the following results:
$ rpm -q whitebox-release rhn-applet
whitebox-release-3.0-4
rhn-applet-2.1.4-3
$ rpm -q --whatprovides redhat-release --qf "%{VERSION}\n"
3.0
-Kevin
William Hooper wrote:
> After taking another look at my Fedora machine, a "cleaner" solution might
> be to just have whitebox-release provide "redhat-release". For example:
>
> [whooper@butters whooper]$ cat /etc/fedora-release
> Fedora Core release 1 (Yarrow)
> [whooper@butters whooper]$ rpm -q --whatprovides redhat-release
> fedora-release-1-3
> [whooper@butters whooper]$
>
> This is most likely why it slipped through to begin with, because the
> check for redhat-release succeeds with Fedora Core.
>
--
Kevin Ediger
Engineering Group Leader, Software
LI-COR, Inc.
Lincoln, NE
kediger@licor.com
--------------060608060006080907030704
Content-Type: text/plain;
name="whitebox-release.spec.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="whitebox-release.spec.patch"
--- whitebox-release.spec-orig 2003-12-14 22:37:05.000000000 -0600
+++ whitebox-release.spec 2003-12-23 08:45:11.000000000 -0600
@@ -6,11 +6,12 @@
Summary: White Box Enterprise Linux release file
Name: whitebox-release
Version: %{real_release_version}
-Release: 3
+Release: 4
Copyright: GPL
Group: System Environment/Base
Source: whitebox-release-%{builtin_release_version}-i386.tar.gz
Obsoletes: redhat-release rawhide-release redhat-release-as redhat-release-es redhat-release-ws redhat-release-de
+Provides: redhat-release
BuildRoot: %{_tmppath}/whitebox-release-root
ExclusiveArch: i386
--------------060608060006080907030704--