From a09c15c5703c3d995f6f1e12a00a2b077daaa8ac Mon Sep 17 00:00:00 2001 From: Landon Fuller Date: Thu, 1 Aug 2002 00:21:25 +0000 Subject: [PATCH] Set variables if they are not already set git-svn-id: https://svn.macports.org/repository/macports/trunk/base@11 d073be05-634f-4543-b044-5fe20cf6d1d6 --- Install/darwinports.1.0.tcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Install/darwinports.1.0.tcl b/Install/darwinports.1.0.tcl index 4802f0f1f..8523b5b1a 100644 --- a/Install/darwinports.1.0.tcl +++ b/Install/darwinports.1.0.tcl @@ -27,8 +27,12 @@ namespace eval darwinports { set portpath /usr/darwinports darwinports::readconf - set distpath $portpath/distfiles - set libpath ${portpath}/Tcl + if ![info exists distpath] { + set distpath $portpath/distfiles + } + if ![info exists libpath] { + set libpath $portpath/Tcl + } if [file isdirectory $libpath] { if [catch {pkg_mkIndex $libpath *.tcl *.so *.dylib */*.tcl */*.so */*.dylib} result] {