From: Pierre Joye Date: Tue, 5 Aug 2003 23:17:40 +0000 (+0000) Subject: - Fix download with uncompress option X-Git-Tag: RELEASE_0_5_2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=827e482224eac27291efa425177d048dd603cbb1;p=php - Fix download with uncompress option Nota Bene, we should think to use the same name for pearweb and pear cmd --- diff --git a/pear/PEAR/Command/Remote.php b/pear/PEAR/Command/Remote.php index 45494874db..205b3dd8b6 100644 --- a/pear/PEAR/Command/Remote.php +++ b/pear/PEAR/Command/Remote.php @@ -282,7 +282,8 @@ parameter. } $server = $this->config->get('master_server'); if (!ereg('^http://', $params[0])) { - $pkgfile = "http://$server/get/$params[0]"; + $getoption = isset($options['nocompress'])&&$options['nocompress']==1?'?uncompress=on':''; + $pkgfile = "http://$server/get/$params[0]".$getoption; } else { $pkgfile = $params[0]; }