diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-18 19:16:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-18 19:16:52 +0000 |
commit | 272efdd8bb44418825b7e3e2b4ba3777e941d1d2 (patch) | |
tree | 442b231ca35ae123a723ba999f8540a880f1bfac | |
parent | 7df79813e02eec3e54e7804e8d40d6174cb1db41 (diff) | |
download | pkgsrc-272efdd8bb44418825b7e3e2b4ba3777e941d1d2.tar.gz |
Output a more informative/desriptive error than:
cd: cd BUILDLINK_PREFIX.foo_not_found
We now say that the package wasn't installed at the time that we were
trying to buildlink its files.
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index a1fefd0b842..10a6f704949 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.93 2004/02/18 14:23:43 jlam Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.94 2004/02/18 19:16:52 jlam Exp $ # # An example package buildlink3.mk file: # @@ -546,6 +546,13 @@ _BLNK_FILES_CMD.${_pkg_}+= ) ${_BLNK_COOKIE.${_pkg_}}: ${_PKG_SILENT}${_PKG_DEBUG} \ case ${BUILDLINK_PREFIX.${_pkg_}} in \ + *not_found) \ + ${ECHO} "${_pkg_} is not installed; can't buildlink files."; \ + ${FALSE}; \ + ;; \ + esac + ${_PKG_SILENT}${_PKG_DEBUG} \ + case ${BUILDLINK_PREFIX.${_pkg_}} in \ ${X11BASE}) buildlink_dir="${BUILDLINK_X11_DIR}" ;; \ *) buildlink_dir="${BUILDLINK_DIR}" ;; \ esac; \ |