[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#696123: partman-base: need progress wrapper for non-libparted-based filesystem operations



On Mon, Dec 17, 2012 at 02:45:41AM +0000, Ben Hutchings wrote:
> On Mon, 2012-12-17 at 00:11 +0000, Colin Watson wrote:
> [...]
> > Rather than the Sisyphean task of giving all the appropriate utilities
> > machine-parseable progress interface, I instead suggest that we study
> > the current progress interfaces and try to identify some common factors
> > that can be parsed heuristically (e.g. solid bar of characters;
> > "\-/|"-style spinner; percentage output), and write a wrapper utility
> > that can translate some of the common ones into debconf progress output.
> [...]
> 
> I have trouble believing that this is going to be easier than patching
> the most common utilities to add an option for a machine-readable
> progress indicator.

I have no such trouble; we're going to need a wrapper to translate into
the debconf protocol *anyway*, and having it understand a few different
syntaxes is not that troublesome.  IME getting the file descriptor
plumbing right on these things is usually the most fiddly part. :-)

-- 
Colin Watson                                       [cjwatson@debian.org]


Reply to: