Bug 716428 - rlIsRHEL does not recognize RHEL4-U8-Desktop as a RHEL system
Summary: rlIsRHEL does not recognize RHEL4-U8-Desktop as a RHEL system
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: 18
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 545868
TreeView+ depends on / blocked
 
Reported: 2011-06-24 12:05 UTC by Jan Hutař
Modified: 2016-09-20 02:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-09 16:25:36 UTC
Type: ---


Attachments (Terms of Use)

Description Jan Hutař 2011-06-24 12:05:26 UTC
Description of problem:
rlIsRHEL do not recognizes RHEL4-U8-Desktop as a RHEL


Version-Release number of selected component (if applicable):
beakerlib-1.3-5.el4


How reproducible:
always


Steps to Reproduce:
1. # . /usr/bin/rhts-environment.sh
2. # . /usr/lib/beakerlib/beakerlib.sh
3. # rlJournalStart; rlPhaseStartSetup
4. # rlIsRHEL
5. # echo $?
   1
6. # rlIsRHEL 4
7. # echo $?
   1


Actual results:
It is not recognized


Expected results:
It should be recognized as RHEL and also as RHEL4


Additional info:
# type rlIsRHEL
rlIsRHEL is a function
rlIsRHEL () 
{ 
    __INTERNAL_rlIsDistro "Red Hat Enterprise Linux" $@
}
# type __INTERNAL_rlIsDistro
__INTERNAL_rlIsDistro is a function
__INTERNAL_rlIsDistro () 
{ 
    local distro="$(lsb_release -ds)";
    local whole="$(lsb_release -rs)";
    local major="$(lsb_release -rs | cut -d '.' -f 1)";
    echo $distro | grep -q "$1" || return 1;
    shift;
    [ -z "$1" ] && return 0;
    for arg in $@;
    do
        if [ "$arg" == "$whole" ] || [ "$arg" == "$major" ]; then
            return 0;
        fi;
    done;
    return 1
}
# lsb_release -ds
"Red Hat Desktop release 4 (Nahant Update 8)"

Comment 1 Fedora End Of Life 2012-08-16 16:51:40 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Petr Muller 2013-04-09 16:25:36 UTC
This seems to be fixed by commit f20344d3c749e31c6be81c5657cd71ab90b13e64, included in all distribution channels.


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