Skip to content

Commit

Permalink
Do the right thing if distfiles is not set
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/base@192 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Aug 18, 2002
1 parent 543115d commit d92aa58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tcl/port1.0/portextract.tcl
Expand Up @@ -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
Expand Down

0 comments on commit d92aa58

Please sign in to comment.