Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2017 01:47:05 +1000
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        Mathieu Arnold <mat@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-svnadmin@freebsd.org, "portmgr@FreeBSD.org" <portmgr@FreeBSD.org>
Subject:   Re: svn commit: r450616 - svnadmin/hooks/scripts
Message-ID:  <f15131c6-ba07-88c7-1f55-a9cf24555b53@FreeBSD.org>
In-Reply-To: <201709251537.v8PFbH7K018382@repo.freebsd.org>
References:  <201709251537.v8PFbH7K018382@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/26/17 1:37 AM, Mathieu Arnold wrote:
> Author: mat
> Date: Mon Sep 25 15:37:17 2017
> New Revision: 450616
> URL: https://svnweb.freebsd.org/changeset/ports/450616
> 
> Log:
>   Flavors are coming soon, but first, forbid anyone from using it.
>   
>   With hat:	portmgr
>   Sponsored by:	Absolight
> 
> Modified:
>   svnadmin/hooks/scripts/stage-only.sh
> 
> Modified: svnadmin/hooks/scripts/stage-only.sh
> ==============================================================================
> --- svnadmin/hooks/scripts/stage-only.sh	Mon Sep 25 15:19:43 2017	(r450615)
> +++ svnadmin/hooks/scripts/stage-only.sh	Mon Sep 25 15:37:17 2017	(r450616)
> @@ -34,6 +34,11 @@ for line in $(svnlook changed -t $TXN $REPO) ; do
>  			echo "NOPORTDATA is nonsense as a variable affecting all ports." 1>&2
>  			exit 1
>  		fi
> +		if svnlook cat -t ${TXN} ${REPO} $fpath | grep -q "^FLAVORS" ; then
> +			echo "Do not commit a port with FLAVORS without first" > 1>&2
> +			echo "getting approval from portmgr." 1>&2
> +			exit 1
> +		fi
>  	;;
>  	head/*/*/pkg-plist*)
>  		if svnlook cat -t ${TXN} ${REPO} $fpath | grep -q "%%PORTDATA%%" ; then
> 

I just saw this on commit:

svn: E165001: Commit failed (details follow):
svn: E165001: Commit blocked by pre-commit hook (exit code 1) with output:
/s/svn/ports/hooks/scripts/stage-only.sh: 38: Syntax error: redirection
unexpected (expecting word)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f15131c6-ba07-88c7-1f55-a9cf24555b53>