This commit is contained in:
Djamil Legato
2014-09-01 23:21:18 -07:00
parent 0d0c22c940
commit 3948aa77a8
2 changed files with 3 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;
}