Skip to content

Commit

Permalink
Fix extraction of portdir archives
Browse files Browse the repository at this point in the history
The -q flag of tar(1) should only be used when a list of files to
extract is specified. If no files are specified, nothing is extracted.

Fixes: https://trac.macports.org/ticket/53532
  • Loading branch information
jmroot committed Feb 14, 2017
1 parent 6718cc6 commit 8c2da16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macports1.0/macports.tcl
Expand Up @@ -1561,7 +1561,7 @@ proc macports::fetch_port {url {local 0}} {
if {$binary} {
set cmdline [list $tarcmd ${tarflags}${qflag}xOf $filepath ./+PORTFILE > Portfile]
} else {
set cmdline [list $tarcmd ${tarflags}${qflag}xf $filepath]
set cmdline [list $tarcmd ${tarflags}xf $filepath]
}
ui_debug $cmdline
if {[catch {exec {*}$cmdline} result]} {
Expand Down

0 comments on commit 8c2da16

Please sign in to comment.