Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 360233

Summary: Support --ask=n to override EMERGE_DEFAULT_OPTS
Product: Portage Development Reporter: David Carlos Manuelda <StormByte>
Component: CoreAssignee: Portage team <dev-portage>
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 358927    

Description David Carlos Manuelda 2011-03-24 06:13:28 UTC
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
Comment 1 Zac Medico gentoo-dev 2011-03-24 06:23:04 UTC
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.
Comment 2 SpanKY gentoo-dev 2011-03-24 06:24:23 UTC
that certainly sounds like a much saner solution
Comment 3 David Carlos Manuelda 2011-03-24 06:42:56 UTC
--ask=n seems not supported:

emerge bzip --ask=n
Usage: emerge [options]

emerge: error: --ask option does not take a value
Comment 4 Zac Medico gentoo-dev 2011-03-24 06:45:23 UTC
(In reply to comment #3)
> --ask=n seems not supported:

No problem, we can add it. Here's a similar patch:;a=commit;h=9bdc01a9ef0c5c6373a4a4ac5ad288dc9018372c
Comment 5 Zac Medico gentoo-dev 2011-03-24 18:19:44 UTC
(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:;a=commit;h=39911a4fc3859ae528dfe541ae9d9119291ae0e2
Comment 6 Zac Medico gentoo-dev 2011-03-27 23:29:03 UTC
This is fixed in and 2.2.0_alpha29.
Comment 7 David Carlos Manuelda 2011-03-30 16:01:10 UTC
Just for the record. Another case where disable ask is usefull is to run a cronjob to emerge --sync