Subject: Re: Damn it! pkgsrc stupidity again
To: None <>
From: George Georgalis <>
List: tech-pkg
Date: 11/06/2006 11:37:58
On Mon, Nov 06, 2006 at 10:48:37AM -0500, George Georgalis wrote:
>pkg_chk -un | grep 'version mismatch' | sed -e 's/.* //' | while read p; do cd /usr/pkgsrc/`pkg_info -Q PKGPATH $p` && printf  "cd $PWD && make update\n" ; done
>as awkward as that command line is it, it works very nicely in
>cron, until the last pkg_chk revision (when it broke), it would
>generate no email for no updates or the commands required to
>update, when there are available updates.

I just noticed the pkg_chk output now includes the pkgsrc
directory, so most of the complexity above is eliminaed...

pkg_chk -un | grep ' - ' | sed -e 's/^/cd \/usr\/pkgsrc\//' -e 's/ - / \&\& make \&\& make update # /'

now that I'm parsing the new output correctly, it also works, even
though "Unable to read PKGCHK_CONF" persist it's not a big deal.

// George

George Georgalis, systems architect, administrator <IXOYE><