Packages can't be added to two repos at once
parent
e5907a3431
commit
544067ced9
|
@ -81,7 +81,7 @@ class LibraryInstaller implements InstallerInterface
|
||||||
$downloadPath = $this->directory.DIRECTORY_SEPARATOR.$package->getName();
|
$downloadPath = $this->directory.DIRECTORY_SEPARATOR.$package->getName();
|
||||||
|
|
||||||
$this->downloadManager->download($package, $downloadPath);
|
$this->downloadManager->download($package, $downloadPath);
|
||||||
$this->repository->addPackage($package);
|
$this->repository->addPackage(clone $package);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -153,4 +153,9 @@ abstract class BasePackage implements PackageInterface
|
||||||
{
|
{
|
||||||
return $this->getUniqueName();
|
return $this->getUniqueName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->repository = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue