Skip to content

Commit

Permalink
Merge pull request #59 from gholms/rhel
Browse files Browse the repository at this point in the history
Add RHEL support
  • Loading branch information
FrostyX committed Sep 22, 2016
2 parents 8ba1346 + b727fff commit 58fccf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tracer/packageManagers/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


from tracer.resources.system import System
if System.distribution() in ["fedora", "centos", "mageia"]:
if System.distribution() in ["fedora", "rhel", "centos", "mageia"]:

from os import listdir
from .ipackageManager import IPackageManager
Expand Down
2 changes: 1 addition & 1 deletion tracer/packageManagers/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


from tracer.resources.system import System
if System.distribution() in ["fedora", "centos"]:
if System.distribution() in ["fedora", "rhel", "centos"]:

from tracer.packageManagers.rpm import Rpm

Expand Down
1 change: 1 addition & 0 deletions tracer/resources/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def get_instance(pair):
managers = {
"gentoo": [("tracer.packageManagers.portage", "Portage")],
"debian": [("tracer.packageManagers.dpkg", "Dpkg")],
"rhel": [("tracer.packageManagers.yum", "Yum")],
"centos": [("tracer.packageManagers.yum", "Yum")],
"mageia": [("tracer.packageManagers.dnf", "Dnf")],
"arch": [("tracer.packageManagers.alpm", "Alpm")],
Expand Down

0 comments on commit 58fccf5

Please sign in to comment.