[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Small bug in out-of-date script
- To: ports@openbsd.org
- Subject: Re: Small bug in out-of-date script
- From: Andreas Kahari <ak+openbsd@freeshell.org>
- Date: Sun, 2 Nov 2003 14:42:14 +0000
- Cc: misc@openbsd.org
- Content-Disposition: inline
- Mail-Followup-To: ports@openbsd.org, misc@openbsd.org
- References: <20031102142515.GA4329@SDF.LONESTAR.ORG>
- User-Agent: Mutt/1.4.1i
[Cc: misc]
By the way, this also makes the port_update.pl script of sturm@
fail for the very same reason. It will wander off and update
*all* ports. For those of you who uses it, change the affected
regex in the same way as in the patch below. It's around line
150 in the script.
I'm not sure what other port-related software are affected.
Cheers,
Andreas
On Sun, Nov 02, 2003 at 02:25:15PM +0000, Andreas Kahari wrote:
> Hi,
>
> A few days ago I noticed that there was a bug in the script
> "infrastructure/build/out-of-date" which makes is so that the
> generated "specs" list is always empty. Apparantly the output
> format of pkg_info was changed.
>
> Here's a fix that appears to be working:
>
> Index: out-of-date
> ===================================================================
> RCS file: /usr/cvs/ports/infrastructure/build/out-of-date,v
> retrieving revision 1.7
> diff -u -r1.7 out-of-date
> --- out-of-date 28 Sep 2003 10:59:42 -0000 1.7
> +++ out-of-date 2 Nov 2003 14:17:51 -0000
> @@ -32,7 +32,7 @@
> TMPDIR=`mktemp -d /tmp/outdated.XXXXXXXXX`
> trap "rm -r $TMPDIR" 0 1 2 3 15
> echo "Generate specs"
> -pkg_info -f -a|sed -n -e 's/.*Comment: subdir=//p'|sed -e 's/ cdrom=.*//' >$TMPDIR/specs
> +pkg_info -f -a|sed -n -e 's/.*comment subdir=//p'|sed -e 's/ cdrom=.*//' >$TMPDIR/specs
> echo "Check new package names"
> cd $PORTSDIR && make SUBDIRLIST=$TMPDIR/specs show=FULLPKGNAME\${SUBPACKAGE} ECHO_MSG=: REPORT_PROBLEM=true|sort >$TMPDIR/new
> echo "Record old package names"
>
> --
> Andreas Kähäri
> East Anglia, England
--
Andreas Kähäri
East Anglia, England