Remove unnecessary dist type information from archive files
parent
935f7271f8
commit
074af5dc54
|
@ -59,7 +59,7 @@ class ArchiveManager
|
||||||
if (preg_match('{^[a-f0-9]{40}$}', $package->getDistReference())) {
|
if (preg_match('{^[a-f0-9]{40}$}', $package->getDistReference())) {
|
||||||
$nameParts = array_merge($nameParts, array($package->getDistReference(), $package->getDistType()));
|
$nameParts = array_merge($nameParts, array($package->getDistReference(), $package->getDistType()));
|
||||||
} else {
|
} else {
|
||||||
$nameParts = array_merge($nameParts, array($package->getPrettyVersion(), $package->getDistReference(), $package->getDistType()));
|
$nameParts = array_merge($nameParts, array($package->getPrettyVersion(), $package->getDistReference()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return implode('-', array_filter($nameParts, function ($p) {
|
return implode('-', array_filter($nameParts, function ($p) {
|
||||||
|
|
Loading…
Reference in New Issue