Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix extraction of portdir archives
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
(cherry picked from commit 8c2da16)
  • Loading branch information
jmroot committed Feb 17, 2017
1 parent aa8e2f7 commit 4c29521
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 4c29521

Please sign in to comment.