svn commit: r499996 - svnadmin/hooks/scripts
Antoine Brodin
antoine at FreeBSD.org
Thu Apr 25 13:59:45 UTC 2019
Author: antoine
Date: Thu Apr 25 13:59:44 2019
New Revision: 499996
URL: https://svnweb.freebsd.org/changeset/ports/499996
Log:
Prevent addition of more %%PYTHON_PYOEXTENSION%%
With hat: portmgr
Modified:
svnadmin/hooks/scripts/stage-only.sh
Modified: svnadmin/hooks/scripts/stage-only.sh
==============================================================================
--- svnadmin/hooks/scripts/stage-only.sh Thu Apr 25 13:51:20 2019 (r499995)
+++ svnadmin/hooks/scripts/stage-only.sh Thu Apr 25 13:59:44 2019 (r499996)
@@ -42,6 +42,13 @@ for line in $(svnlook changed -t $TXN $REPO) ; do
exit 1
fi
;;
+ head/*/*/pkg-plist*)
+ if svnlook cat -t ${TXN} ${REPO} $fpath | grep -q "%%PYTHON_PYOEXTENSION%%" ; then
+ echo "Do not commit ports with %%PYTHON_PYOEXTENSION%%." 1>&2
+ echo "Use either pyo for python 2.7 ports or opt-1.pyc for python 3.5+ ports." 1>&2
+ 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
More information about the svn-ports-svnadmin
mailing list