From kuroo testing: If you have --ask inside EMERGE_DEFAULT_OPTS, then, portage can't be used externally. In my case I get: !!! "--ask" should only be used in a terminal. Exiting. It could throw a warning if --ask was in EMERGE_DEFAULT_OPTS, and an error if it was specified as manual command. using portage-2.2.0_alpha28. Reproducible: Always
Maybe kuroo should be using --igore-default-opts. Another alternative would be do add support for --ask=n so that tools like kuroo could explicitly disable it.
that certainly sounds like a much saner solution
--ask=n seems not supported: emerge bzip --ask=n Usage: emerge [options] emerge: error: --ask option does not take a value
(In reply to comment #3) > --ask=n seems not supported: No problem, we can add it. Here's a similar patch: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9bdc01a9ef0c5c6373a4a4ac5ad288dc9018372c
(In reply to comment #1) > Another alternative would be to add support for --ask=n so that tools like > kuroo could explicitly disable it. This is implemented in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=39911a4fc3859ae528dfe541ae9d9119291ae0e2
This is fixed in 2.1.9.45 and 2.2.0_alpha29.
Just for the record. Another case where disable ask is usefull is to run a cronjob to emerge --sync