diff options
author | necoro <> | 2007-05-14 18:54:38 +0000 |
---|---|---|
committer | necoro <> | 2007-05-14 18:54:38 +0000 |
commit | 8b5575f4ecff31de8e23b88dffb63b19ff2d2167 (patch) | |
tree | dd9ef7e6f7b1bd5db896ac5355cf6caefa004c95 /portato/backend | |
parent | 48a4f88747307ce41a07b4fa55411b44b9269eb7 (diff) | |
download | portato-8b5575f4ecff31de8e23b88dffb63b19ff2d2167.tar.gz portato-8b5575f4ecff31de8e23b88dffb63b19ff2d2167.tar.bz2 portato-8b5575f4ecff31de8e23b88dffb63b19ff2d2167.zip |
filtering "--ask" fron EMERGE_DEFAULT_OPTS
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 2d90c24..9e203db 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -66,8 +66,14 @@ class PortageSystem (SystemInterface): if default_opts: opt_list = default_opts.split() - if "--ask" in opt_list: - opt_list.remove("--ask") + changed = False + + for option in ["--ask", "-a", "--pretend", "-p"]: + if option in opt_list: + opt_list.remove(option) + changed = True + + if changed: opts.update(EMERGE_DEFAULT_OPTS = " ".join(opt_list)) return opts |