Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 11:23:29 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478673 - in head/ports-mgmt/portdowngrade: . files
Message-ID:  <201809011123.w81BNT4l084677@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Sat Sep  1 11:23:29 2018
New Revision: 478673
URL: https://svnweb.freebsd.org/changeset/ports/478673

Log:
  Clarify error message

Modified:
  head/ports-mgmt/portdowngrade/Makefile
  head/ports-mgmt/portdowngrade/files/portdowngrade

Modified: head/ports-mgmt/portdowngrade/Makefile
==============================================================================
--- head/ports-mgmt/portdowngrade/Makefile	Sat Sep  1 10:54:41 2018	(r478672)
+++ head/ports-mgmt/portdowngrade/Makefile	Sat Sep  1 11:23:29 2018	(r478673)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	portdowngrade
-PORTVERSION=	1.6
+PORTVERSION=	1.7
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	# empty
 DISTFILES=	# none

Modified: head/ports-mgmt/portdowngrade/files/portdowngrade
==============================================================================
--- head/ports-mgmt/portdowngrade/files/portdowngrade	Sat Sep  1 10:54:41 2018	(r478672)
+++ head/ports-mgmt/portdowngrade/files/portdowngrade	Sat Sep  1 11:23:29 2018	(r478673)
@@ -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/nu
 
 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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809011123.w81BNT4l084677>