From owner-freebsd-ports Mon Dec 4 22:37:59 2000 From owner-freebsd-ports@FreeBSD.ORG Mon Dec 4 22:37:56 2000 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from patrol.bitsurf.net (c158457-a.frmt1.sfba.home.com [24.9.169.120]) by hub.freebsd.org (Postfix) with ESMTP id 95AD537B400; Mon, 4 Dec 2000 22:37:56 -0800 (PST) Received: (from mharo@localhost) by patrol.bitsurf.net (8.11.1/8.11.1) id eB56bpS59351; Mon, 4 Dec 2000 22:37:51 -0800 (PST) (envelope-from mharo) Date: Mon, 4 Dec 2000 22:37:51 -0800 From: Michael Haro To: Akinori MUSHA Cc: Will Andrews , Maxim Sobolev , Michael Haro , FreeBSD-ports Subject: Re: portlint update Message-ID: <20001204223751.A59334@FreeBSD.org> Reply-To: mharo@FreeBSD.ORG References: <86u28kwghs.wl@archon.local.idaemons.org> <3A2B895D.D67E403A@FreeBSD.org> <86sno4w5g6.wl@archon.local.idaemons.org> <3A2BBF80.9CC69A1E@FreeBSD.org> <86r93ovxag.wl@archon.local.idaemons.org> <20001204224011.A570@puck.firepipe.net> <86sno3pffa.wl@archon.local.idaemons.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <86sno3pffa.wl@archon.local.idaemons.org>; from knu@iDaemons.org on Tue, Dec 05, 2000 at 03:09:45PM +0900 Sender: mharo@patrol.bitsurf.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 05, 2000 at 03:09:45PM +0900, Akinori MUSHA wrote: >=20 > By the way, I found another bug... >=20 > @@ -415,9 +306,10 @@ > =20 > open(IN, "< $file") || return 0; > while () { > - $linecnt++; > - $longlines++ if ($maxchars{$file} < length(chomp($_))); > $tmp .=3D $_; > + chomp || &perror("WARN: $file should terminate in '\n'."); > + $linecnt++; > + $longlines++ if ($maxchars{$file} < length); > } > if ($linecnt > $maxlines{$file}) { > &perror("WARN: $file $errmsg{$file}". >=20 > As `length(chomp($_))' is always either 0 or 1, the maxchars check > hasn't been working at all. ;( >=20 > I think I've committed many ports which pkg-comment's are over 70 > bytes in length... *shudder* This check has already been fixed in portlint3. Michael --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: bhuS2cAVVC/GGGqEFkxLFevZW/FBatIE iQA/AwUBOiyNPuKkMfh7htP/EQIHIACgn4tJ3vl7Xdfhumm0S6IzItdMNh0AoMF6 lrs+S4FTVGr+5o3xirNvhFc9 =tUL4 -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message