summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2003-12-09 13:14:02 +0000
committergrant <grant>2003-12-09 13:14:02 +0000
commitbb68fed85ca9c766aed1979ded71847cecf7c447 (patch)
treed71a4bb7db5c67967b133c56f836cc0c4ff88a49 /mk
parenta61f1128eb7bfd82fe4b391aab46eb8b901ccae1 (diff)
downloadpkgsrc-bb68fed85ca9c766aed1979ded71847cecf7c447.tar.gz
make the "update your package tools!" failure message more accurate
and friendly.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 4846ff78de6..a601e168539 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1316 2003/12/07 22:47:16 grant Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1317 2003/12/09 13:14:02 grant Exp $
#
# This file is in the public domain.
#
@@ -761,9 +761,10 @@ uptodate-pkgtools:
.endif
. if !defined(NO_PKGTOOLS_REQD_CHECK)
. if ${PKGTOOLS_VERSION} < ${PKGTOOLS_REQD}
-PKG_FAIL_REASON+='Your package tools need to be updated to ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} versions.'
-PKG_FAIL_REASON+='The installed package tools were last updated on ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|}.'
-PKG_FAIL_REASON+='To fix this, use the following command:'
+PKG_FAIL_REASON+='Error: The package tools installed on this system are out of date.'
+PKG_FAIL_REASON+='The installed package tools are dated ${PKGTOOLS_VERSION:C|(....)(..)(..)|\1/\2/\3|} and you must update'
+PKG_FAIL_REASON+='them to at least ${PKGTOOLS_REQD:C|(....)(..)(..)|\1/\2/\3|} using the following command:'
+PKG_FAIL_REASON+=''
PKG_FAIL_REASON+=' cd ${_PKGSRCDIR}/pkgtools/pkg_install && ${MAKE} clean && ${MAKE} install'
. endif
. endif