summaryrefslogtreecommitdiff
path: root/portato/backend/portage/system_22.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-06-25 21:09:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-06-25 21:09:17 +0200
commitd5c4405e9e37c7793033fe190c9507eb5e39dcc5 (patch)
treeb5de5fce481de230443e54acb9c7a14e56cb01c9 /portato/backend/portage/system_22.py
parentb1ee44e5e2e89d4969a6324674c7f122881aa4b8 (diff)
downloadportato-d5c4405e9e37c7793033fe190c9507eb5e39dcc5.tar.gz
portato-d5c4405e9e37c7793033fe190c9507eb5e39dcc5.tar.bz2
portato-d5c4405e9e37c7793033fe190c9507eb5e39dcc5.zip
Added Package_22 and System_22
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/system_22.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/portato/backend/portage/system_22.py b/portato/backend/portage/system_22.py
new file mode 100644
index 0000000..a4ea4a0
--- /dev/null
+++ b/portato/backend/portage/system_22.py
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+#
+# File: portato/backend/portage/system_22.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
+#
+# Copyright (C) 2008 René 'Necoro' Neumann
+# This is free software. You may redistribute copies of it under the terms of
+# the GNU General Public License version 2.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# Written by René 'Necoro' Neumann <necoro@necoro.net>
+
+from __future__ import absolute_import, with_statement
+
+from .package_22 import PortagePackage_22
+from .settings_22 import PortageSettings_22
+from .system import PortageSystem
+
+class PortageSystem_22 (PortageSystem):
+
+ def __init__ (self):
+ self.settings = PortageSettings_22()
+ portage.WORLD_FILE = os.path.join(self.settings.settings["ROOT"],portage.WORLD_FILE)
+
+ self.use_descs = {}
+ self.local_use_descs = defaultdict(dict)
+
+ self._version = tuple([x.split("_")[0] for x in portage.VERSION.split(".")])
+
+ def new_package (self, cpv):
+ return PortagePackage_22(cpv)