Fwd: Move of WWW to Makefiles is rejected by the repository

From: Stefan Esser <se_at_FreeBSD.org>
Date: Thu, 08 Sep 2022 06:46:40 UTC
FYI - below is the error message caused by the initial attempt
to commit the WWW changes to the port Makefiles.

When I tried to exclude the devel/py3c/Makefile from the commit,
the git command suggested "git rm --chached" to keep the file,
but I had thought that this command just removed it from the
staging area, not that it would remove it from the repository.

Reagrds, STefan

-------- Weitergeleitete Nachricht --------
Betreff: Move of WWW to Makefiles is rejected by the repository
Datum: Wed, 7 Sep 2022 22:44:32 +0200
Von: Stefan Esser <se@FreeBSD.org>
An: portmgr <portmgr@FreeBSD.org>

My attempt to push the update that moves the WWW entries into
the Makefiles was not successful.

At first, there were 7 ports that had "# Created by:" lines,
which I have removed.

But now I get this error abort due to a remote pre-commit hook

$ git push
Enumerating objects: 87333, done.
Counting objects: 100% (87333/87333), done.
Delta compression using up to 32 threads
Compressing objects: 100% (54539/54539), done.
Writing objects: 100% (55924/55924), 16.37 MiB | 4.68 MiB/s, done.
Total 55924 (delta 10824), reused 46467 (delta 1385), pack-reused 0
remote: Resolving deltas: 100% (10824/10824), completed with 9437 local objects.
remote: ================================================================
remote: Adding new py3- ports is forbidden. File:
remote: devel/py3c/Makefile
remote: The Python ports have flavors and do not need the py3- ports.
remote: ================================================================
To gitrepo.freebsd.org:ports.git
  ! [remote rejected]           main -> main (pre-receive hook declined)
error: failed to push some refs to 'gitrepo.freebsd.org:ports.git'

I cannot commit to the devel/py3c port, and the whole commit stops.

AFAICT, this is a false positive due to a too broad pattern.

Please let me know whether updating this (existing!) Makefile should
really be blocked - else fix the pattern to not overblock my commit.

Regards, STefan