git: f993572c8109 - main - rmport: warn about node slave packages when removing a www/node port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Jul 2024 14:02:16 UTC
The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=f993572c8109f9cd8284499f2eb10a22c811bdde commit f993572c8109f9cd8284499f2eb10a22c811bdde Author: Rene Ladan <rene@FreeBSD.org> AuthorDate: 2024-07-14 14:01:13 +0000 Commit: Rene Ladan <rene@FreeBSD.org> CommitDate: 2024-07-14 14:01:55 +0000 rmport: warn about node slave packages when removing a www/node port --- Tools/scripts/rmport | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index 9f90e01b900e..930dd60753fd 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -445,6 +445,13 @@ for catport in $* ; do # everything seems ok, edit the files + if [ -z "${catport##www/node*}" ] ; then + node_version="${catport##www/node}" + if [ -n "${node_version}" ] ; then + echo "You are removing a node port, do not forget www/npm-node${node_version} and www/yarn-node${node_version}" + fi + fi + edit_MOVED ${catport} edit_Makefile ${cat} ${port}