mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Cleanup
This commit is contained in:
@@ -18,7 +18,7 @@ class FetchCommand extends Command {
|
||||
protected $cache;
|
||||
protected $argv;
|
||||
protected $progress;
|
||||
protected $repository = 'http://rt.djamil.it/grav-site/downloads';//'http://getgrav.org/downloads';
|
||||
protected $repository = 'http://getgrav.org/downloads';
|
||||
protected $pkg_types = array('plugins', 'themes');
|
||||
|
||||
public function __construct(Grav $grav){
|
||||
@@ -75,7 +75,6 @@ class FetchCommand extends Command {
|
||||
|
||||
$this->progress = new ProgressBar($this->output, count($this->pkg_types));
|
||||
$this->progress->setFormat("<normal>%message%</normal>\n<cyan>%current%</cyan><normal>/</normal><cyan>%max%</cyan> <white>[%bar%]</white> <green>%percent:3s%%</green>");
|
||||
//$progress->setFormat('Downloading <cyan>%current%</cyan> files [<green>%bar%</green>] %elapsed:6s% %memory:6s%');
|
||||
|
||||
$this->progress->setMessage('Task in progress');
|
||||
$this->progress->start();
|
||||
|
||||
@@ -221,6 +221,7 @@ class InstallCommand extends Command {
|
||||
|
||||
if (!$openZip){
|
||||
$this->output->write("\x0D");
|
||||
// extra white spaces to clear out the buffer properly
|
||||
$this->output->writeln(" |- Installing package... <red>error</red> ");
|
||||
$this->output->writeln(" | '- Unable to open the downloaded package: <yellow>".$package->download."</yellow>");
|
||||
|
||||
@@ -235,6 +236,7 @@ class InstallCommand extends Command {
|
||||
rename($tmp.DS.$innerFolder, $destination);
|
||||
|
||||
$this->output->write("\x0D");
|
||||
// extra white spaces to clear out the buffer properly
|
||||
$this->output->writeln(" |- Installing package... <green>ok</green> ");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user