From 3948aa77a8babe5972bed63e5e97db9855391753 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Mon, 1 Sep 2014 23:21:18 -0700 Subject: [PATCH] Cleanup --- system/src/Grav/Console/Gpm/FetchCommand.php | 3 +-- system/src/Grav/Console/Gpm/InstallCommand.php | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Console/Gpm/FetchCommand.php b/system/src/Grav/Console/Gpm/FetchCommand.php index 31d51b9e1..f1854e09f 100644 --- a/system/src/Grav/Console/Gpm/FetchCommand.php +++ b/system/src/Grav/Console/Gpm/FetchCommand.php @@ -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("%message%\n%current%/%max% [%bar%] %percent:3s%%"); - //$progress->setFormat('Downloading %current% files [%bar%] %elapsed:6s% %memory:6s%'); $this->progress->setMessage('Task in progress'); $this->progress->start(); diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 3daafcbd0..6fc852522 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -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... error "); $this->output->writeln(" | '- Unable to open the downloaded package: ".$package->download.""); @@ -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... ok "); return true; }