basic source dirs && general tarball fixup
[pharext/pharext] / src / pharext / Packager.php
index 9acb5ebc848a229c62a7d0e7c74eec63bcbf13cc..8b7ad226ed48de9b15a6458c3a8c7053ea3169b1 100644 (file)
@@ -141,8 +141,6 @@ class Packager implements Command
         * @return string local source
         */
        private function download($source) {
-               $this->info("Fetching remote source %s ...\n", $source);
-               
                if ($this->args->git) {
                        $task = new Task\GitClone($source);
                } else {
@@ -167,8 +165,6 @@ class Packager implements Command
         * @return string extracted directory
         */
        private function extract($source) {
-               $this->debug("Extracting %s ...\n", $source);
-               
                $task = new Task\Extract($source);
                $dest = $task->run($this->verbosity());
                
@@ -191,8 +187,7 @@ class Packager implements Command
                        $source = $this->extract($source);
                        $this->cleanup[] = new Task\Cleanup($source);
                        
-                       if ($this->args->pecl) {
-                               $this->debug("Sanitizing PECL dir ...\n");
+                       if (!$this->args->git) {
                                $source = (new Task\PeclFixup($source))->run($this->verbosity());
                        }
                }
@@ -213,6 +208,8 @@ class Packager implements Command
                                $this->source = new SourceDir\Git($source);
                        } elseif (is_file("$source/parext_package.php")) {
                                $this->source = include "$source/pharext_package.php";
+                       } else {
+                               $this->source = new SourceDir\Basic($source);
                        }
 
                        if (!$this->source instanceof SourceDir) {