ports-mgmt/portmaster: allow unprivileged users to fetch distfiles

Allow portmaster -F to be run without requesting root privileges.

Keep the testing of the user id as a separate test in order to not
execute $PM_SU_CMD if $NO_ACTION" or $FETCH_ONLY is set.

The distfiles directory must be writeable to take advantage of this
change.

PR:		226506
Reported by:	David Wolfskill
This commit is contained in:
Stefan Eßer 2024-11-01 21:20:20 +01:00
parent ba6c016e7d
commit ee6d1b3625
2 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,5 @@
PORTNAME= portmaster
PORTVERSION= 3.29
PORTREVISION= 2
PORTVERSION= 3.30
CATEGORIES= ports-mgmt
MAINTAINER= se@FreeBSD.org

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1701339347
SHA256 (freebsd-portmaster-3.29_GH0.tar.gz) = 6fa2250ae6d2d1c0f4604c276c6c5d9dd336315b3399a84c6e705b8c6d1421fd
SIZE (freebsd-portmaster-3.29_GH0.tar.gz) = 44717
TIMESTAMP = 1730492333
SHA256 (freebsd-portmaster-3.30_GH0.tar.gz) = 9a94a309703cc6ef99fb7e13e5dcf6842d5a495cf90e5835410a7fe78243f303
SIZE (freebsd-portmaster-3.30_GH0.tar.gz) = 44715