diff options
author | 2005-08-09 08:01:11 +0000 | |
---|---|---|
committer | 2005-08-09 08:01:11 +0000 | |
commit | a83f62005780879685263abf596edc955e2279b0 (patch) | |
tree | 63f94e69a7a0918df005aa73fb685139b4356868 | |
parent | portage.util.dicts => portage.util.mappings (diff) | |
download | portage-cvs-a83f62005780879685263abf596edc955e2279b0.tar.gz portage-cvs-a83f62005780879685263abf596edc955e2279b0.tar.bz2 portage-cvs-a83f62005780879685263abf596edc955e2279b0.zip |
wrapper layer for (ab|)use of stacking on other repositories.
initial implementation, probably will be overhauled a bit, but right now is usable for screwing with the default repository.match
-rw-r--r-- | portage/repository/wrapper.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/portage/repository/wrapper.py b/portage/repository/wrapper.py new file mode 100644 index 0000000..6ac93b6 --- /dev/null +++ b/portage/repository/wrapper.py @@ -0,0 +1,16 @@ +# Copyright: 2005 Gentoo Foundation +# Author(s): Brian Harring (ferringb@gentoo.org) +# License: GPL2 +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/portage/repository/wrapper.py,v 1.1 2005/08/09 08:01:11 ferringb Exp $ + +# icky. +# ~harring +import prototype, errors + +class wrapperTree(prototype.tree): + """wrap an existing repository filtering results based upon passed in restrictions.""" + def __init__(self, repo, package_class): + self.raw_repo = repo + if not isinstance(self.raw_repo, prototype.tree): + raise errors.InitializationError("%s is not a repository tree derivative" % str(self.raw_repo)) + self.package_class = package_class |