summaryrefslogtreecommitdiff
path: root/portato/backend/__init__.py
diff options
context:
space:
mode:
authorNecoro <>2007-11-01 23:55:10 +0000
committerNecoro <>2007-11-01 23:55:10 +0000
commitc1fff1ed4879dcc035cbf77e648074e952c0f925 (patch)
treebb1cc8c0a8075d9010ef03305a042bf312f45be5 /portato/backend/__init__.py
parentb7c30a8494c0cc7f74fcd3810a2c146ae3b1a6e4 (diff)
downloadportato-c1fff1ed4879dcc035cbf77e648074e952c0f925.tar.gz
portato-c1fff1ed4879dcc035cbf77e648074e952c0f925.tar.bz2
portato-c1fff1ed4879dcc035cbf77e648074e952c0f925.zip
r521@Devoty: necoro | 2007-10-31 17:19:09 +0100
r522@Devoty: necoro | 2007-11-02 00:51:00 +0100 No more instanceof calls r523@Devoty: necoro | 2007-11-02 00:51:51 +0100 Fixed bugs; removed unnecessairy dbus calls; make update world being async r524@Devoty: necoro | 2007-11-02 00:52:09 +0100 always use catapult
Diffstat (limited to 'portato/backend/__init__.py')
-rw-r--r--portato/backend/__init__.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py
index 16cebe6..26585c6 100644
--- a/portato/backend/__init__.py
+++ b/portato/backend/__init__.py
@@ -12,6 +12,7 @@
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
@@ -55,9 +56,13 @@ def load_system ():
global _sys
if SYSTEM == "portage":
+ debug("Setting Portage System")
+ from traceback import print_stack
+ print_stack()
from .portage import PortageSystem
_sys = PortageSystem ()
elif SYSTEM == "catapult":
+ debug("Setting Catapult System")
from .catapult import CatapultSystem
_sys = CatapultSystem()
else:
@@ -65,10 +70,7 @@ def load_system ():
system = SystemWrapper()
-# import package before loading the system as some systems may depend on it being in the namespace
-from .package import Package
-
def is_package(what):
- return isinstance(what, Package)
+ return isinstance(what, _Package)
load_system()