summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-08 15:44:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-08 15:44:51 +0200
commit4ff350a2286133638f3aae0bf5b0688c0795e07b (patch)
tree6c63b9a1eda1c4aa1a47daa7001b31cf2748a2ba /portato/backend
parent276451a383052ffdc67f561082825cc84aa83bd7 (diff)
downloadportato-4ff350a2286133638f3aae0bf5b0688c0795e07b.tar.gz
portato-4ff350a2286133638f3aae0bf5b0688c0795e07b.tar.bz2
portato-4ff350a2286133638f3aae0bf5b0688c0795e07b.zip
Removed the USE_CATAPULT stuff
Diffstat (limited to '')
-rw-r--r--portato/backend/__init__.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py
index 003feb7..b2a5a43 100644
--- a/portato/backend/__init__.py
+++ b/portato/backend/__init__.py
@@ -13,14 +13,10 @@
from __future__ import absolute_import
from ..helper import debug
-from ..constants import USE_CATAPULT
from .system_interface import SystemInterface
from .exceptions import BlockedException, PackageNotFoundException, DependencyCalcError, InvalidSystemError
-if USE_CATAPULT:
- SYSTEM = "catapult"
-else:
- SYSTEM = "portage" # the name of the current system
+SYSTEM = "portage" # the name of the current system
_sys = None # the SystemInterface-instance
class _Package (object):
@@ -45,8 +41,9 @@ def set_system (new_sys):
@type new_sys: string"""
global SYSTEM
- SYSTEM = new_sys
- load_system()
+ if new_sys != SYSTEM:
+ SYSTEM = new_sys
+ load_system()
def load_system ():
"""Loads the current chosen system.