[Piuparts-devel] Bug#612408: Proposal for Comment

Scott Schaefer saschaefer at neurodiverse.org
Sat May 28 12:57:41 UTC 2011

 From http://piuparts.debian.org/sid/command_not_found_issue.html ...

The commandline to find these logs is:

COMMAND=`rgrep "command not found" pass |
   cut -d " " -f1 |
   sed -e "s#\.log:.*#.log#" |
   sort -u 2>/dev/null`

piuparts already logs at different "levels" -- DEBUG, INFO, and DUMP.  Unfortunately, anything which it executes inside the chroot is currently logged as "DUMP".  So, I believe a reasonable solution to this requires:

1) Modifying piuparts.py (and other(s) ?) to log output of some chroot commands at level other than DUMP; e.g. INFO

2) Modifying COMMAND above to ignore lines logged at "minor" levels; i.e. if output of apt --show were logged at "INFO:", then something like:

find pass -type f -name "*log" |
   xargs awk '$1 ~ /^[0-9]+m[0-9\.]+s$/&&  $2 ~ /^[A-Z]+:$/ {IGN=0} $1 ~ /^[0-9]+m[0-9\.]+s$/&&  $2 ~ /^INFO:$/ {IGN=1} {if (IGN==0) print}'

Comments welcome before I proceed on this,

More information about the Piuparts-devel mailing list