From d92aa5876e3c50acfe2c80ace31cb9f8219dc4e3 Mon Sep 17 00:00:00 2001 From: Landon Fuller Date: Sun, 18 Aug 2002 09:31:18 +0000 Subject: [PATCH] Do the right thing if distfiles is not set git-svn-id: https://svn.macports.org/repository/macports/trunk/base@192 d073be05-634f-4543-b044-5fe20cf6d1d6 --- Tcl/port1.0/portextract.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tcl/port1.0/portextract.tcl b/Tcl/port1.0/portextract.tcl index 68bdb4dade..99c42a410e 100755 --- a/Tcl/port1.0/portextract.tcl +++ b/Tcl/port1.0/portextract.tcl @@ -19,6 +19,11 @@ options extract_opts extract.only extract.cmd extract.before_args extract.after_ proc extract_main {args} { global portname portpath portpath workdir distname distpath distfiles use_bzip2 extract.only extract.cmd extract.before_args extract.after_args + if {![info exists distfiles] && ![info exists extract.only]} { + # nothing to do + return 0 + } + # Set up defaults default extract.only $distfiles default extract.cmd gzip