From owner-svn-ports-all@freebsd.org Fri Nov 11 02:13:41 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56E48C3A4A8; Fri, 11 Nov 2016 02:13:41 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26BDFC3B; Fri, 11 Nov 2016 02:13:41 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAB2De8R062317; Fri, 11 Nov 2016 02:13:40 GMT (envelope-from marcus@FreeBSD.org) Received: (from marcus@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAB2De7B062315; Fri, 11 Nov 2016 02:13:40 GMT (envelope-from marcus@FreeBSD.org) Message-Id: <201611110213.uAB2De7B062315@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marcus set sender to marcus@FreeBSD.org using -f From: Joe Marcus Clarke Date: Fri, 11 Nov 2016 02:13:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425858 - in head/ports-mgmt/portlint: . src X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 02:13:41 -0000 Author: marcus Date: Fri Nov 11 02:13:40 2016 New Revision: 425858 URL: https://svnweb.freebsd.org/changeset/ports/425858 Log: Correct a typo with TIMESTAMP handling. While here, don't use a pure magic number for the 30 days worth of seconds. PR: 212091 Submitted by: jrm Modified: head/ports-mgmt/portlint/Makefile head/ports-mgmt/portlint/src/portlint.pl Modified: head/ports-mgmt/portlint/Makefile ============================================================================== --- head/ports-mgmt/portlint/Makefile Fri Nov 11 01:01:38 2016 (r425857) +++ head/ports-mgmt/portlint/Makefile Fri Nov 11 02:13:40 2016 (r425858) @@ -3,6 +3,7 @@ PORTNAME= portlint PORTVERSION= 2.17.5 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= # none DISTFILES= # none Modified: head/ports-mgmt/portlint/src/portlint.pl ============================================================================== --- head/ports-mgmt/portlint/src/portlint.pl Fri Nov 11 01:01:38 2016 (r425857) +++ head/ports-mgmt/portlint/src/portlint.pl Fri Nov 11 02:13:40 2016 (r425858) @@ -15,7 +15,7 @@ # was removed. # # $FreeBSD$ -# $MCom: portlint/portlint.pl,v 1.396 2016/11/09 00:33:57 jclarke Exp $ +# $MCom: portlint/portlint.pl,v 1.397 2016/11/11 02:12:15 jclarke Exp $ # use strict; @@ -395,10 +395,10 @@ sub checkdistinfo { } if (/^TIMESTAMP\s+=\s+(\d+)$/) { my $now = time; - if ($_ > $now) { + if ($1 > $now) { &perror("FATAL", $file, $., "TIMESTAMP is in the future"); } else { - if ($now - $_ > 2592000) { + if ($now - $1 > (30 * 60 * 60 * 24)) { &perror("WARN", $file, $., "TIMESTAMP is over 30 days old"); } }