Skip to content

Commit

Permalink
Use Yum as package manager on CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Jan 18, 2015
1 parent 8d38326 commit 8d41d65
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() == "fedora":
if System.distribution() in ["fedora", "centos"]:

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() == "fedora":
if System.distribution() in ["fedora", "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 @@ -47,6 +47,7 @@ def get_instance(pair):
managers = {
"gentoo": [("tracer.packageManagers.portage", "Portage")],
"debian": [("tracer.packageManagers.dpkg", "Dpkg")],
"centos": [("tracer.packageManagers.yum", "Yum")],
"fedora": [
("tracer.packageManagers.dnf", "Dnf"),
("tracer.packageManagers.yum", "Yum"),
Expand Down

0 comments on commit 8d41d65

Please sign in to comment.