diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-25 21:50:36 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-25 21:50:36 +0200 |
commit | b11914a429a63f5d33bdb6fc0d543be3fff031d3 (patch) | |
tree | f070e879d47db5f00cce4bf55f5da5cb2e7f2ab4 /portato/backend/portage/system_22.py | |
parent | 01f01abb51af0639bd0e1fccd4ad5fccd5ca074c (diff) | |
parent | 9f820103c30e89376a0484c614d2bbc068998e48 (diff) | |
download | portato-b11914a429a63f5d33bdb6fc0d543be3fff031d3.tar.gz portato-b11914a429a63f5d33bdb6fc0d543be3fff031d3.tar.bz2 portato-b11914a429a63f5d33bdb6fc0d543be3fff031d3.zip |
First merge from portage-2.2 branch as it includes fixes for trunk too
Diffstat (limited to 'portato/backend/portage/system_22.py')
-rw-r--r-- | portato/backend/portage/system_22.py | 34 |
1 files changed, 34 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..be27186 --- /dev/null +++ b/portato/backend/portage/system_22.py @@ -0,0 +1,34 @@ +# -*- 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 + +import os +import portage + +from collections import defaultdict + +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) + + def new_package (self, cpv): + return PortagePackage_22(cpv) |