aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-06-11 16:23:52 +0800
committerdougb <dougb@FreeBSD.org>2010-06-11 16:23:52 +0800
commit8d5362cc00f656e3dc3260d552e592b9475382aa (patch)
treede6fec2cf682930029fa3ed84f0e0894cd9eca6d /ports-mgmt
parent98570c258983d06b6a064806988834e8ebb4c8d7 (diff)
downloadfreebsd-ports-gnome-8d5362cc00f656e3dc3260d552e592b9475382aa.tar.gz
freebsd-ports-gnome-8d5362cc00f656e3dc3260d552e592b9475382aa.tar.zst
freebsd-ports-gnome-8d5362cc00f656e3dc3260d552e592b9475382aa.zip
In delete_all_distfiles() when there is no $origin (such as when a port
has moved) but there IS a /var/db/ports/<portname>/distfiles, we do not want to prompt the user if they are using -d, we just want to delete the files. In the code to strip the port from $build_l if the user chose not to update a port that has an +IGNOREME file, the backslash in "\t" needs to be escaped.
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmaster/files/portmaster.sh.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/ports-mgmt/portmaster/files/portmaster.sh.in b/ports-mgmt/portmaster/files/portmaster.sh.in
index e1e4a38b97dd..d49b2a5e4ca4 100644
--- a/ports-mgmt/portmaster/files/portmaster.sh.in
+++ b/ports-mgmt/portmaster/files/portmaster.sh.in
@@ -1648,9 +1648,16 @@ delete_all_distfiles () {
echo " Try ${0##*/} --clean-distfiles[-all] for a full cleanup"
echo ''
if [ -n "$dist_list_files" ]; then
- echo "===>>> However, the list of files in $dist_list"
- echo -n " should be current. Delete the files on this list? y/n [n] "
- local answer f ; read answer
+ local answer f
+ # Outdent
+ if [ -z "$ALWAYS_SCRUB_DISTFILES" ]; then
+ echo "===>>> However, the list of files in $dist_list"
+ echo -n " should be current. Delete the files on this list? y/n [n] "
+ read answer
+ else
+ answer=y
+ fi
+ # Outdent
case "$answer" in
[yY]) for f in $dist_list_files; do
if [ -f "${DISTDIR}${f}" ]; then
@@ -2756,7 +2763,7 @@ if [ -e "$pdb/$upg_port/+IGNOREME" ]; then
dep_of_deps=$(( $dep_of_deps - 1 ))
if [ -n "$CONFIG_ONLY" ]; then
num_of_deps=$(( $num_of_deps - 1 ))
- build_l="${build_l%\t*}"
+ build_l="${build_l%\\t*}"
fi
fi
# Outdent