X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FPackager.php;h=8b7ad226ed48de9b15a6458c3a8c7053ea3169b1;hb=10c6f10181e75139992ba92b7185fe9a50b889b2;hp=f5ccfb80848667d63c38e98a323f94a28dfe5d48;hpb=337e76964be2ed6724633ac477affc3a28426c97;p=pharext%2Fpharext diff --git a/src/pharext/Packager.php b/src/pharext/Packager.php index f5ccfb8..8b7ad22 100644 --- a/src/pharext/Packager.php +++ b/src/pharext/Packager.php @@ -187,7 +187,7 @@ class Packager implements Command $source = $this->extract($source); $this->cleanup[] = new Task\Cleanup($source); - if ($this->args->pecl) { + if (!$this->args->git) { $source = (new Task\PeclFixup($source))->run($this->verbosity()); } } @@ -208,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) {