Ticket #4074: tbz-archive.patch
File tbz-archive.patch, 2.6 KB (added by yves@…, 19 years ago) |
---|
-
doc/ports.conf.in
old new 34 34 # Unarchive uses multiple types as a search list to locate the archive, 35 35 # first archive to match one of the specified types in order is used. 36 36 # 37 # Supported types: tgz (default), tar, xar, zip, cpgz , cpio37 # Supported types: tgz (default), tar, tbz, xar, zip, cpgz , cpio 38 38 portarchivetype tgz 39 39 40 40 # Set whether to automatically execute "clean" after "install" of ports -
src/package1.0/portarchive.tcl
old new 168 168 return -code error "No '$pax' was found on this system!" 169 169 } 170 170 } 171 t(ar| gz) {171 t(ar|bz|gz) { 172 172 set tar "tar" 173 173 if {[catch {set tar [binaryInPath $tar]} errmsg] == 0} { 174 174 ui_debug "Using $tar" 175 175 set archive.cmd "$tar" 176 176 set archive.pre_args {-cvf} 177 177 if {[regexp {z$} ${archive.type}]} { 178 set gzip "gzip" 178 if {[regexp {bz$} ${archive.type}]} { 179 set gzip "bzip2" 180 } else { 181 set gzip "gzip" 182 } 179 183 if {[catch {set gzip [binaryInPath $gzip]} errmsg] == 0} { 180 184 ui_debug "Using $gzip" 181 185 set archive.args {- .} -
src/package1.0/portunarchive.tcl
old new 187 188 return -code error "No '$pax' was found on this system!" 188 189 } 189 190 } 190 t(ar| gz) {191 t(ar|bz|gz) { 191 192 set tar "tar" 192 193 if {[catch {set tar [binaryInPath $tar]} errmsg] == 0} { 193 194 ui_debug "Using $tar" … … 195 196 set unarchive.pre_args {-xvpf} 196 197 if {[regexp {z$} ${unarchive.type}]} { 197 198 set unarchive.args {-} 198 set gzip "gzip" 199 if {[regexp {bz$} ${unarchive.type}]} { 200 set gzip "bzip2" 201 } else { 202 set gzip "gzip" 203 } 199 204 if {[catch {set gzip [binaryInPath $gzip]} errmsg] == 0} { 200 205 ui_debug "Using $gzip" 201 206 set unarchive.env "$gzip -d -c ${unarchive.path} |" -
src/port1.0/portutil.tcl
old new 1218 1218 } 1219 1219 } 1220 1220 } 1221 t(ar| gz) {1221 t(ar|bz|gz) { 1222 1222 set tar "tar" 1223 1223 if {[catch {set tar [binaryInPath $tar]} errmsg] == 0} { 1224 1224 if {[regexp {z$} $type]} { 1225 set gzip "gzip" 1225 if {[regexp {bz$} $type]} { 1226 set gzip "bzip2" 1227 } else { 1228 set gzip "gzip" 1229 } 1226 1230 if {[catch {set gzip [binaryInPath $gzip]} errmsg] == 0} { 1227 1231 return 0 1228 1232 }