aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2018-09-01 19:23:29 +0800
committercrees <crees@FreeBSD.org>2018-09-01 19:23:29 +0800
commita0b4d68e763aad5003eb681147d08d783bb993ef (patch)
treee9b7891a9f7a1141bc774199aee5a70b29237472 /ports-mgmt
parent0d5541e0a8d2f1cd86f3b0359007a0c4aecde306 (diff)
downloadfreebsd-ports-gnome-a0b4d68e763aad5003eb681147d08d783bb993ef.tar.gz
freebsd-ports-gnome-a0b4d68e763aad5003eb681147d08d783bb993ef.tar.zst
freebsd-ports-gnome-a0b4d68e763aad5003eb681147d08d783bb993ef.zip
Clarify error message
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portdowngrade/Makefile2
-rw-r--r--ports-mgmt/portdowngrade/files/portdowngrade5
2 files changed, 5 insertions, 2 deletions
diff --git a/ports-mgmt/portdowngrade/Makefile b/ports-mgmt/portdowngrade/Makefile
index 3302f097d7a3..2a716c1e2b48 100644
--- a/ports-mgmt/portdowngrade/Makefile
+++ b/ports-mgmt/portdowngrade/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= portdowngrade
-PORTVERSION= 1.6
+PORTVERSION= 1.7
CATEGORIES= ports-mgmt
MASTER_SITES= # empty
DISTFILES= # none
diff --git a/ports-mgmt/portdowngrade/files/portdowngrade b/ports-mgmt/portdowngrade/files/portdowngrade
index 55bf4c0179cf..005582995cd2 100644
--- a/ports-mgmt/portdowngrade/files/portdowngrade
+++ b/ports-mgmt/portdowngrade/files/portdowngrade
@@ -24,6 +24,9 @@ for the correct origins and a list is presented.
When called with -r, make describe is called in the restored port and all
of the ports that the restored port depended on are also checked out at the
same date.
+
+This software requires that a ports tree has been fetched and is present
+in ${PORTSDIR:-/usr/ports}.
EOF
exit 1
}
@@ -62,7 +65,7 @@ svn=$(which svn 2>/dev/null || which svnlite 2>/dev/null) || err "Where is Subve
PORTSDIR="$(make -f /usr/share/mk/bsd.port.mk -VPORTSDIR)"
-[ -d $PORTSDIR ] || err "Where is your ports tree??"
+[ -d $PORTSDIR ] || usage
args=$(getopt c:r $*) || usage