diff options
author | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-07-29 12:21:29 +0200 |
---|---|---|
committer | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-07-29 12:56:04 +0200 |
commit | bfa21fbb23eaab7bb830070c4b9ea4d20e8f470f (patch) | |
tree | 1ef5f80e90917e19ad00de5f9eb504e0eb9d0906 /src | |
parent | Modified logging to trace more things (diff) | |
download | collagen-bfa21fbb23eaab7bb830070c4b9ea4d20e8f470f.tar.gz collagen-bfa21fbb23eaab7bb830070c4b9ea4d20e8f470f.tar.bz2 collagen-bfa21fbb23eaab7bb830070c4b9ea4d20e8f470f.zip |
Create mechanism for skipping packages from dep
For now this is used to skip updating/downgrading portage. This only
caused problems
Diffstat (limited to 'src')
-rw-r--r-- | src/tinderbox/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py index 66fe821..edad312 100644 --- a/src/tinderbox/__init__.py +++ b/src/tinderbox/__init__.py @@ -24,6 +24,9 @@ from logger import log, init_logging class Tinderbox(object): + + NOMERGE_PKGS=['sys-apps/portage'] + def __init__(self): self.hostname = config.MATCHBOX_HOST self.port = config.MATCHBOX_PORT @@ -366,7 +369,7 @@ class Tinderbox(object): deps_expanded = [] max_dep_versions = 0 for dep in deps: - if dep[0].startswith('!'): + if dep[0].startswith('!') or dep in self.NOMERGE_PKGS: continue dep_useflag = list(portage.dep.dep_getusedeps(dep)) if 0 == len(dep_useflag): |