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

Bug 682458

Summary: Ask to continue/skip on file collisions when command line argument --ask was given
Product: Portage Development Reporter: Bodo Thiesen <bothie>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bodo Thiesen 2019-04-03 20:06:55 UTC
* Detected file collision(s):
 *
 *    list of files
 *
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * [...]
 * 
 * Package 'foo/bar-42.23' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

Instead of terminating at this stage, portage should ask whether to:

1. Overwrite the listed files
2. Skip this ebuild (and maybe --keep-going)
3. Terminate at this point (actually, this can be implemented using CTRL+C)

So, question could read

Do you want to overwrite these files? [Yes/No]

With ENTER meaning "Yes" as in the question "Would you like to merge these packages? [Yes/No]" and "No" meaning skip this one and maybe --keep-going.

Oh, and of course, in the scanning phase "Press Ctrl-C to Stop" CTRL+C should only terminate the scan but not terminate portage (again: Only if --ask was given).

Reproducible: Always