severity 251974 wishlist merge 250463 251974 thanks On Sat, May 22, 2004 at 11:23:13PM -0700, Joshua Kwan wrote: > The original reporter of this bug wants to be able to cancel DHCP > autodetection. This is a good idea, but it needs some cdebconf firepower > so we can perhaps bind a callback function to a Cancel button during a > progress bar or set some sort of status flag. Is this possible?
(Also Konstantinos' bug #251974.) The simplest way I can think of to do this would be to have the progress bar functions (i.e. db_progress <anything>) return some new error code in the 30-99 range if the cancel button was pressed since the last time a progress bar function was called. Then individual udebs can cope with that however they like, and will have the opportunity to clean up properly. As you suggest, a CAPB is needed to ensure that code that doesn't expect these extra return codes never gets them. If people like this idea, I hereby volunteer to implement it. Cheers, -- Colin Watson [EMAIL PROTECTED]