|
@@ -97,8 +97,8 @@ class ArchiveManager
|
|
|
* @param PackageInterface $package The package to archive
|
|
|
* @param string $format The format of the archive (zip, tar, ...)
|
|
|
* @param string $targetDir The directory where to build the archive
|
|
|
- * @param string|null $fileName The file name to use for the archive, or null to use the generated
|
|
|
- * package name
|
|
|
+ * @param string|null $fileName The relative file name to use for the archive, or null to generate
|
|
|
+ * the package name. Note that the format will be appended to this name
|
|
|
* @throws \InvalidArgumentException
|
|
|
* @throws \RuntimeException
|
|
|
* @return string The path of the created archive
|
|
@@ -128,9 +128,9 @@ class ArchiveManager
|
|
|
|
|
|
$filesystem = new Filesystem();
|
|
|
if(null === $fileName) {
|
|
|
- $packageName = $fileName;
|
|
|
- } else {
|
|
|
$packageName = $this->getPackageFilename($package);
|
|
|
+ } else {
|
|
|
+ $packageName = $fileName;
|
|
|
}
|
|
|
|
|
|
// Archive filename
|