summaryrefslogtreecommitdiff
path: root/mk/fetch
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-10 14:31:35 +0000
committerrillig <rillig@pkgsrc.org>2007-01-10 14:31:35 +0000
commit39f6b30d1d5ec1e5da78b69e1e3bebfdbe233f6b (patch)
treeba3d63ab20aa00860d823834a9f6fddfdd7d68a7 /mk/fetch
parentbff131a9e411a71310d9b44f793734d4683bcf6c (diff)
downloadpkgsrc-39f6b30d1d5ec1e5da78b69e1e3bebfdbe233f6b.tar.gz
It's more informative to use absolute pathnames in error messages than
just ".".
Diffstat (limited to 'mk/fetch')
-rwxr-xr-xmk/fetch/fetch5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/fetch/fetch b/mk/fetch/fetch
index 034d1fd4b25..054adc9858e 100755
--- a/mk/fetch/fetch
+++ b/mk/fetch/fetch
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: fetch,v 1.6 2006/08/03 14:02:58 jlam Exp $
+# $NetBSD: fetch,v 1.7 2007/01/10 14:31:35 rillig Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -142,6 +142,9 @@ while ${TEST} $# -gt 0; do
*) break ;;
esac
done
+
+fetchdir=`cd $fetchdir && exec pwd`
+
if ${TEST} -n "$checksum" -a -z "$distinfo"; then
${ECHO} 1>&2 "$self: \`\`-c'' requires \`\`-f distinfo''."
exit 1