[pca] Running summary
Martin Paul
martin at par.univie.ac.at
Wed Feb 24 09:34:56 CET 2010
Craig Bell wrote:
> A casual request: Could pca show a brief session summary after each
> patch? Perhaps something like:
>
> "Done -- 12:34:56 PST -- 00:10:30 elapsed, 02:30:40 total -- 103
> successful, 1 skipped, 0 failed"
I've recommended wrapper scripts for that in the past, too, but I
understand that this might be of interest to more pca users than just
you. Plus, it's much easier for pca to capture and display this data, so
it makes sense to include it.
You already addressed the problems I might have implementing this: I
wouldn't want to add a new command line option, so it should be
integrated into the default output. On the other hand, I don't want to
add a whole lot of new output which might create confusion, or even
break existing wrapper scripts.
I have now added support for the needed data output to the current
development release of pca (20100223-02, get it from pca's
"Installation" page), using a concise format. Instead of just "Done", it
now shows a line like this:
Done (08:53:40/00:01:34/00:02:48, 1/1, 1/0/0)
The docs have a new paragraph explaining the numbers:
After the installation of each patch, a status line shows
the current time, the time used to install the patch and the
total run time. It also includes the current/total number of
patches and counts for successful, skipped and failed patch
installs.
Of course I'm open to suggestions of alternative output formats. The
goal is to be both human and machine readable (for wrappers) and I want
to keep all lines shorter than 80 characters. If anybody has an idea of
an extra data field to be added, let me know.
Martin.
More information about the pca
mailing list