Skip to content

Commit

Permalink
Fixes #73 - add support for Oracle Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sean797 committed Mar 22, 2017
1 parent b4f03f3 commit e9b1f67
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", "rhel", "centos", "mageia"]:
if System.distribution() in ["fedora", "rhel", "centos", "mageia", "ol"]:

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", "rhel", "centos"]:
if System.distribution() in ["fedora", "rhel", "centos", "ol"]:

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 @@ -66,6 +66,7 @@ def get_instance(pair):
"debian": [("tracer.packageManagers.dpkg", "Dpkg")],
"rhel": [("tracer.packageManagers.yum", "Yum")],
"centos": [("tracer.packageManagers.yum", "Yum")],
"ol": [("tracer.packageManagers.yum", "Yum")],
"mageia": [("tracer.packageManagers.dnf", "Dnf")],
"arch": [("tracer.packageManagers.alpm", "Alpm")],
"archarm": [("tracer.packageManagers.alpm", "Alpm")],
Expand Down

0 comments on commit e9b1f67

Please sign in to comment.