Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved the cloner creation to only happen after main file detection is…

… complete, and only if cloning is actually needed.
  • Loading branch information...
commit 8eb072666e6bf4099d858ec9c486502feb52acb6 1 parent 3976887
Vasil Rangelov boenrobot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/Pyrus/Developer/PackageFile/Commands.php
2  src/Pyrus/Developer/PackageFile/Commands.php
View
@@ -322,7 +322,6 @@ function package($frontend, $args, $options)
}
echo "Creating ", $mainfile, "\n";
if (null == $cert) {
- $cloner = new \Pyrus\Package\Cloner($mainfile);
$clone = $extras;
$extras = array();
} else {
@@ -382,6 +381,7 @@ function package($frontend, $args, $options)
}
$creator->render($package, $extrafiles);
if (count($clone)) {
+ $cloner = new \Pyrus\Package\Cloner($mainfile);
foreach ($clone as $extra) {
echo "Creating ", $package->name, '-', $package->version['release'], '.', $extra[0], "\n";
$cloner->{'to' . $extra[0]}();
Please sign in to comment.
Something went wrong with that request. Please try again.