From owner-svn-ports-svnadmin@freebsd.org Fri Aug 5 12:21:07 2016 Return-Path: Delivered-To: svn-ports-svnadmin@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 22F8DBB05CE; Fri, 5 Aug 2016 12:21:07 +0000 (UTC) (envelope-from mat@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 E5CBF17A2; Fri, 5 Aug 2016 12:21:06 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u75CL6Hd049085; Fri, 5 Aug 2016 12:21:06 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u75CL6To049084; Fri, 5 Aug 2016 12:21:06 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201608051221.u75CL6To049084@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Fri, 5 Aug 2016 12:21:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-svnadmin@freebsd.org Subject: svn commit: r419680 - svnadmin/hooks/scripts X-SVN-Group: ports-svnadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-svnadmin@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for svnadmin of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2016 12:21:07 -0000 Author: mat Date: Fri Aug 5 12:21:05 2016 New Revision: 419680 URL: https://svnweb.freebsd.org/changeset/ports/419680 Log: Add a hook to make sure the distinfo files don't get updated without their TIMESTAMP. Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D7114 Modified: svnadmin/hooks/scripts/stage-only.sh Modified: svnadmin/hooks/scripts/stage-only.sh ============================================================================== --- svnadmin/hooks/scripts/stage-only.sh Fri Aug 5 10:20:22 2016 (r419679) +++ svnadmin/hooks/scripts/stage-only.sh Fri Aug 5 12:21:05 2016 (r419680) @@ -42,5 +42,12 @@ for line in $(svnlook changed -t $TXN $R exit 1 fi ;; + head/*/*/distinfo*) + if ! svnlook cat -t ${TXN} ${REPO} $fpath | grep -q '^TIMESTAMP = [0-9]*$' ; then + echo "Do not commit ports without TIMESTAMP in their distinfo files." 1>&2 + echo "Rerun make makesum to add it." 1>&2 + exit 1 + fi + ;; esac done From owner-svn-ports-svnadmin@freebsd.org Sat Aug 6 07:19:47 2016 Return-Path: Delivered-To: svn-ports-svnadmin@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 EAB29BB0634; Sat, 6 Aug 2016 07:19:47 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E0D5F1679; Sat, 6 Aug 2016 07:19:47 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id DF14B1FA9; Sat, 6 Aug 2016 07:19:47 +0000 (UTC) Date: Sat, 6 Aug 2016 07:19:47 +0000 From: Alexey Dokuchaev To: Mathieu Arnold Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-svnadmin@freebsd.org Subject: Re: svn commit: r419680 - svnadmin/hooks/scripts Message-ID: <20160806071947.GB53097@FreeBSD.org> References: <201608051221.u75CL6To049084@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201608051221.u75CL6To049084@repo.freebsd.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: svn-ports-svnadmin@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for svnadmin of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Aug 2016 07:19:48 -0000 On Fri, Aug 05, 2016 at 12:21:06PM +0000, Mathieu Arnold wrote: > New Revision: 419680 > URL: https://svnweb.freebsd.org/changeset/ports/419680 > > Log: > Add a hook to make sure the distinfo files don't get updated without > their TIMESTAMP. I welcome the hook, but it should *set* the TIMESTAMP, not check for it. ./danfe