Add RHEL7 to Red Hat family in pkg-map
The current "redhat" os family omits RHEL7. The rhel7 element has the corresponding $DISTRO_NAME set in environment.d. This patch adds rhel7 so a pkg-map json file using "redhat" for the os family will work the same as rhel, centos and fedora. Change-Id: If6b4cbba618167669a499e6121f234942ca9367a
This commit is contained in:
parent
fb1adbbfee
commit
4226bd66ba
@ -22,7 +22,7 @@ import sys
|
|||||||
|
|
||||||
def os_family(distro):
|
def os_family(distro):
|
||||||
family = None
|
family = None
|
||||||
if distro in ['centos', 'fedora', 'rhel']:
|
if distro in ['centos', 'fedora', 'rhel', 'rhel7']:
|
||||||
family = 'redhat'
|
family = 'redhat'
|
||||||
elif distro in ['debian', 'ubuntu']:
|
elif distro in ['debian', 'ubuntu']:
|
||||||
family = 'debian'
|
family = 'debian'
|
||||||
|
Loading…
Reference in New Issue
Block a user