Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360233 - Support --ask=n to override EMERGE_DEFAULT_OPTS
Summary: Support --ask=n to override EMERGE_DEFAULT_OPTS
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 358927
  Show dependency tree
 
Reported: 2011-03-24 06:13 UTC by David Carlos Manuelda
Modified: 2011-03-30 16:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;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:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=39911a4fc3859ae528dfe541ae9d9119291ae0e2
Comment 6 Zac Medico gentoo-dev 2011-03-27 23:29:03 UTC
This is fixed in 2.1.9.45 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