From 4226bd66baf6c3c9cd73bff2bf843f2185a04d65 Mon Sep 17 00:00:00 2001 From: Ryan Brady Date: Thu, 26 Jun 2014 16:29:59 -0400 Subject: [PATCH] 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 --- elements/pkg-map/bin/pkg-map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/pkg-map/bin/pkg-map b/elements/pkg-map/bin/pkg-map index 1849d511a..a0b4bc332 100755 --- a/elements/pkg-map/bin/pkg-map +++ b/elements/pkg-map/bin/pkg-map @@ -22,7 +22,7 @@ import sys def os_family(distro): family = None - if distro in ['centos', 'fedora', 'rhel']: + if distro in ['centos', 'fedora', 'rhel', 'rhel7']: family = 'redhat' elif distro in ['debian', 'ubuntu']: family = 'debian'