summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/portage/system.py10
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