Commit: 597828fbb1cd3e01aec700ca9b5135a9ac09ec4b
Author: gwoo | Date: 2010-03-08 19:53:23 -0800
diff --git a/libraries/lithium/console/command/Library.php b/libraries/lithium/console/command/Library.php
index f53d39f..ebf3388 100644
--- a/libraries/lithium/console/command/Library.php
+++ b/libraries/lithium/console/command/Library.php
@@ -176,7 +176,12 @@ class Library extends \lithium\console\Command {
}
}
if (file_exists($from)) {
- $archive = new Phar($from);
+ try {
+ $archive = new Phar($from);
+ } catch (\Exception $e) {
+ $this->error($e->getMessage());
+ return false;
+ }
if ($archive->extractTo($to)) {
$this->out(basename($to) . " created in " . dirname($to) . " from {$from}");
return true;
@@ -220,7 +225,12 @@ class Library extends \lithium\console\Command {
}
Phar::unlinkArchive("{$path}.phar");
}
- $archive = new Phar("{$path}.phar");
+ try {
+ $archive = new Phar("{$path}.phar");
+ } catch (\Exception $e) {
+ $this->error($e->getMessage());
+ return false;
+ }
$from = $this->_toPath($from);
$result = (boolean) $archive->buildFromDirectory($from, $this->filter);
diff --git a/libraries/lithium/console/command/create/template/app.phar.gz b/libraries/lithium/console/command/create/template/app.phar.gz
index fa7d5a8..cce5e2f 100644
Binary files a/libraries/lithium/console/command/create/template/app.phar.gz and b/libraries/lithium/console/command/create/template/app.phar.gz differ
diff --git a/libraries/lithium/console/command/create/template/plugin.phar.gz b/libraries/lithium/console/command/create/template/plugin.phar.gz
index da6a65e..cacd5a8 100644
Binary files a/libraries/lithium/console/command/create/template/plugin.phar.gz and b/libraries/lithium/console/command/create/template/plugin.phar.gz differ