pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/fetch Backed out my previous change. The variable f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/85b216cef02c
branches:  trunk
changeset: 524082:85b216cef02c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jan 18 10:51:48 2007 +0000

description:
Backed out my previous change. The variable fetchdir needs to be a
relative path.

The error message nevertheless includes the full path.

diffstat:

 mk/fetch/fetch |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r 3c17be9df6a9 -r 85b216cef02c mk/fetch/fetch
--- a/mk/fetch/fetch    Thu Jan 18 10:28:17 2007 +0000
+++ b/mk/fetch/fetch    Thu Jan 18 10:51:48 2007 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: fetch,v 1.7 2007/01/10 14:31:35 rillig Exp $
+# $NetBSD: fetch,v 1.8 2007/01/18 10:51:48 rillig Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -124,7 +124,7 @@
 # Process optional arguments
 checksum=
 distinfo=
-fetchdir=.
+fetchdir=.                     # A relative directory or "."
 resume=
 verbose=
 while ${TEST} $# -gt 0; do
@@ -142,9 +142,6 @@
        *)      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
@@ -176,7 +173,7 @@
 
 ${TEST} -d $fetchdir || ${MKDIR} -p $fetchdir 2>/dev/null
 if ${TEST} ! -w $fetchdir; then
-       ${ECHO} 1>&2 "$self: Cannot write to $fetchdir"
+       ${ECHO} 1>&2 "$self: Cannot write to `cd $fetchdir && pwd`"
        exit 1
 fi
 



Home | Main Index | Thread Index | Old Index