2011-06-07 22:14:50 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of Composer.
|
|
|
|
*
|
|
|
|
* (c) Nils Adermann <naderman@naderman.de>
|
|
|
|
* Jordi Boggiano <j.boggiano@seld.be>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Composer\Downloader;
|
|
|
|
|
|
|
|
use Composer\Package\PackageInterface;
|
|
|
|
|
|
|
|
/**
|
2011-09-29 21:05:30 +00:00
|
|
|
* Downloader for pear packages
|
|
|
|
*
|
2011-06-28 18:42:02 +00:00
|
|
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
2011-09-29 21:05:30 +00:00
|
|
|
* @author Kirill chEbba Chebunin <iam@chebba.org>
|
2011-06-07 22:14:50 +00:00
|
|
|
*/
|
2011-09-29 21:05:30 +00:00
|
|
|
class PearDownloader extends TarDownloader
|
2011-06-07 22:14:50 +00:00
|
|
|
{
|
2011-09-29 21:05:30 +00:00
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
2011-09-28 22:48:17 +00:00
|
|
|
protected function extract($file, $path)
|
2011-09-25 21:43:49 +00:00
|
|
|
{
|
2011-09-29 21:05:30 +00:00
|
|
|
parent::extract($file, $path);
|
2011-09-28 22:48:17 +00:00
|
|
|
@unlink($path . '/package.sig');
|
|
|
|
@unlink($path . '/package.xml');
|
2011-06-07 22:14:50 +00:00
|
|
|
}
|
2011-09-17 13:12:45 +00:00
|
|
|
}
|