cvs: php4 /pear/PEAR Common.php

From: Date: Mon, 27 May 2002 21:36:32 +0000
Subject: cvs: php4 /pear/PEAR Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4167@lists.php.net to get a copy of this message
ssb Mon May 27 17:36:32 2002 EDT Modified files: /php4/pear/PEAR Common.php Log: * use new Archive_Tar gzip autodetection Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.66 php4/pear/PEAR/Common.php:1.67 --- php4/pear/PEAR/Common.php:1.66 Sun May 26 21:20:08 2002 +++ php4/pear/PEAR/Common.php Mon May 27 17:36:28 2002 @@ -17,7 +17,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.66 2002/05/27 01:20:08 ssb Exp $ +// $Id: Common.php,v 1.67 2002/05/27 21:36:28 ssb Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; @@ -672,12 +672,7 @@ if (!@is_file($file)) { return $this->raiseError("tgz :: could not open file \"$file\""); } - if (substr($file, -4) == '.tar') { - $compress = false; - } else { - $compress = true; - } - $tar = new Archive_Tar($file, $compress); + $tar = new Archive_Tar($file); $content = $tar->listContent(); if (!is_array($content)) { return $this->raiseError("tgz :: could not get contents of package \"$file\""); @@ -1519,7 +1514,6 @@ if ($callback) { call_user_func($callback, 'done', $bytes); } - // callback: done! return $dest_file; }

« previous php.pear.cvs (#4167) next »