summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-01-26 00:14:13 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-01-26 00:14:13 +0100
commit3badeaf275cf8447e2d3575490fca81ff0bd290d (patch)
treedc4a048b827aa6e1725a9f84a1e0d9ee85070ca6 /portato/backend
parentc20d0bc4acc7166ae167f4eae723bc24c30c9e1f (diff)
downloadportato-3badeaf275cf8447e2d3575490fca81ff0bd290d.tar.gz
portato-3badeaf275cf8447e2d3575490fca81ff0bd290d.tar.bz2
portato-3badeaf275cf8447e2d3575490fca81ff0bd290d.zip
Removing 'catapult' option for system
Diffstat (limited to '')
-rw-r--r--portato/backend/__init__.py4
-rw-r--r--portato/backend/portage/__init__.py3
2 files changed, 3 insertions, 4 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py
index 1f62d6b..4a4144a 100644
--- a/portato/backend/__init__.py
+++ b/portato/backend/__init__.py
@@ -56,10 +56,6 @@ def load_system ():
debug("Setting Portage System")
from .portage import PortageSystem
_sys = PortageSystem ()
- elif SYSTEM == "catapult":
- debug("Setting Catapult System")
- from .catapult import CatapultSystem
- _sys = CatapultSystem()
else:
raise InvalidSystemError, SYSTEM
diff --git a/portato/backend/portage/__init__.py b/portato/backend/portage/__init__.py
index 02a4a82..67eebfa 100644
--- a/portato/backend/portage/__init__.py
+++ b/portato/backend/portage/__init__.py
@@ -12,13 +12,16 @@
from __future__ import absolute_import
+from ...helper import debug
from portage import VERSION as PV
VERSION = tuple(map(int, (x.split("_")[0] for x in PV.split("."))))
if VERSION >= (2, 2):
+ debug("Using portage-2.2")
from .system_22 import PortageSystem_22 as PortageSystem
from .package_22 import PortagePackage_22 as PortagePackage
else:
+ debug("Using portage-2.1")
from .system import PortageSystem
from .package import PortagePackage
Bump debian to 1.1.3.Jason A. Donenfeld1-1/+1 2012-09-07Explicitly set permissions when running 'install'Christophe Fergeau1-3/+3 2012-09-07No need for a shebang in bash completion fileChristophe Fergeau1-1/+1 2012-09-06Update COPYING to reflect man page and project page.1.1.2Jason A. Donenfeld1-10/+11 2012-09-06Use BINDIR, MANDIR and SYSCONFDIR vars in MakefileChristophe Fergeau1-5/+8 2012-09-06Add dependencies to README.Jason A. Donenfeld1-0/+8 2012-09-06Change debian name.Jason A. Donenfeld5-5/+4 2012-09-06Use more normal sleep variant.1.1.1Jason A. Donenfeld1-1/+1 2012-09-06Use --noreport instead of head -n -2 for tree so that it works on mac.Jason A. Donenfeld1-1/+1 2012-09-05Be sure to explicitly state that install is a phony target.Jason A. Donenfeld1-0/+2 2012-09-05Bump debian version horribly.1.1Jason A. Donenfeld2-2/+2 2012-09-04No echo mode.Jason A. Donenfeld2-16/+42 2012-09-04Properly quote the path too.Jason A. Donenfeld1-1/+1 2012-09-04Allow passwords having spaces to go unbroken to the clipboard.Bernardo Freitas Paulo da Costa1-1/+1 2012-09-04Separate out the massive git example.Jason A. Donenfeld1-10/+14 2012-09-04Prepare for debianification.1.0Jason A. Donenfeld9-4/+60 2012-09-03Fix readme typo.Jason A. Donenfeld1-1/+1 2012-09-03Show program name properly in error message.Jason A. Donenfeld1-1/+1 2012-09-03Move examples into manpage.Jason A. Donenfeld4-93/+224 2012-09-03Make into a real project.Jason A. Donenfeld8-5/+173 2012-09-03Support pass gitJason A. Donenfeld2-1/+15 2012-08-31Add remove synonyms.Jason A. Donenfeld1-2/+2 2012-08-31Use basename in usage.Jason A. Donenfeld1-2/+1 2012-08-19now using gpg_id as a varMatthew Ramirez1-2/+2 2012-08-07Forty five seconds.Jason A. Donenfeld1-1/+1 2012-08-06Deal with klipper and new lines.Jason A. Donenfeld1-3/+19 2012-08-06Update examples.Jason A. Donenfeld1-7/+7 2012-08-06Update readme.Jason A. Donenfeld1-11/+13 2012-08-06Be slicker and more like git.Jason A. Donenfeld1-114/+173