From 4ff350a2286133638f3aae0bf5b0688c0795e07b Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 8 Jul 2008 15:44:51 +0200 Subject: Removed the USE_CATAPULT stuff --- portato/backend/__init__.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'portato/backend') 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. -- cgit v1.2.3-54-g00ecf