Update PathDownloader.php
Update PathDownloader.php

If a path repository points at a directory that is managed by composer installers, the path that gets set ends up being relative, and this check fails to see that the source is already present, and therefore removes it.

Since ->install is already using realpath around the $path argument, remove should as well.

For an example repository that demonstrates this bug See: https://github.com/ryanaslett/pathrepotestcase
johnstevenson/composer,fabpot/composer,staabm/composer,floverdevel/composer,composer/composer,localheinz/composer,naderman/composer,stefangr/composer,alcohol/composer,stof/composer,milleruk/composer,nicolas-grekas/composer