Browse Source

reverted 5425dc92c6

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
d605864ae2
  1. 5
      extensions/composer/Installer.php

5
extensions/composer/Installer.php

@ -113,11 +113,10 @@ class Installer extends LibraryInstaller
$path = $this->vendorDir . '/' . $package->getName() . '/' . $path; $path = $this->vendorDir . '/' . $package->getName() . '/' . $path;
} }
$path = $fs->normalizePath($path); $path = $fs->normalizePath($path);
$targetDir = $package->getTargetDir();
if (strpos($path . '/', $vendorDir . '/') === 0) { if (strpos($path . '/', $vendorDir . '/') === 0) {
$aliases["@$name"] = '<vendor-dir>' . ($targetDir === null ? '': '/' . $targetDir) . substr($path, strlen($vendorDir)); $aliases["@$name"] = '<vendor-dir>' . substr($path, strlen($vendorDir)) . '/' . $name;
} else { } else {
$aliases["@$name"] = $path . ($targetDir === null ? '': '/' . $targetDir); $aliases["@$name"] = $path . '/' . $name;
} }
} }
return $aliases; return $aliases;

Loading…
Cancel
Save