diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-31 14:31:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-31 14:31:27 +0000 |
commit | 31c592faba08eecbeb6d9ede559923433cf22222 (patch) | |
tree | da8aa22581cf296428a095dd99dd828d004cd4f8 /bootstrap | |
parent | bf5f46da7d314a377fbdf530d9aba35ad58e6af7 (diff) | |
download | pkgsrc-31c592faba08eecbeb6d9ede559923433cf22222.tar.gz |
Only write FETCH_CMD to mk.conf, if it is set already.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 06f75513cca..aac14a4e102 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.102 2007/07/29 17:09:47 joerg Exp $ +# $NetBSD: bootstrap,v 1.103 2007/07/31 14:31:27 joerg Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -831,7 +831,9 @@ echo "PKG_ADMIN_CMD?= $wrkdir/sbin/pkg_admin" >> ${BOOTSTRAP_MKCONF} echo "PKG_CREATE_CMD?= $wrkdir/sbin/pkg_create" >> ${BOOTSTRAP_MKCONF} echo "PKG_INFO_CMD?= $wrkdir/sbin/pkg_info" >> ${BOOTSTRAP_MKCONF} -echo "FETCH_CMD= $fetch_cmd" >> ${TARGET_MKCONF} +if [ -n "${fetch_cmd}" ]; then + echo "FETCH_CMD= $fetch_cmd" >> ${TARGET_MKCONF} +fi MAKECONF=$wrkdir/mk.conf export MAKECONF |