diff options
author | Necoro <> | 2007-10-07 17:53:49 +0000 |
---|---|---|
committer | Necoro <> | 2007-10-07 17:53:49 +0000 |
commit | 5eda979fdfd005eff962524bda730a20061b103d (patch) | |
tree | 7ee6f4565feae5745e8f27e012ea6dad40ce4c0a /portato/backend/__init__.py | |
parent | 00957504111a029bb8950483c0b7a82e6c73166d (diff) | |
download | portato-5eda979fdfd005eff962524bda730a20061b103d.tar.gz portato-5eda979fdfd005eff962524bda730a20061b103d.tar.bz2 portato-5eda979fdfd005eff962524bda730a20061b103d.zip |
first catapult support
Diffstat (limited to '')
-rw-r--r-- | portato/backend/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py index 92b77a8..16cebe6 100644 --- a/portato/backend/__init__.py +++ b/portato/backend/__init__.py @@ -12,10 +12,14 @@ from __future__ import absolute_import +from ..constants import USE_CATAPULT from .system_interface import SystemInterface from .exceptions import BlockedException, PackageNotFoundException, DependencyCalcError, InvalidSystemError -SYSTEM = "portage" # the name of the current system +if USE_CATAPULT: + SYSTEM = "catapult" +else: + SYSTEM = "portage" # the name of the current system _sys = None # the SystemInterface-instance class _Package (object): @@ -53,6 +57,9 @@ def load_system (): if SYSTEM == "portage": from .portage import PortageSystem _sys = PortageSystem () + elif SYSTEM == "catapult": + from .catapult import CatapultSystem + _sys = CatapultSystem() else: raise InvalidSystemError, SYSTEM |