Merge branch '1.5'
commit
6a08755c25
|
@ -158,6 +158,10 @@ EOT
|
||||||
$repos = new CompositeRepository(array_merge(array($installedRepo), $defaultRepos));
|
$repos = new CompositeRepository(array_merge(array($installedRepo), $defaultRepos));
|
||||||
} else {
|
} else {
|
||||||
$repos = $installedRepo = $this->getComposer()->getRepositoryManager()->getLocalRepository();
|
$repos = $installedRepo = $this->getComposer()->getRepositoryManager()->getLocalRepository();
|
||||||
|
$rootPkg = $this->getComposer()->getPackage();
|
||||||
|
if (!$installedRepo->getPackages() && ($rootPkg->getRequires() || $rootPkg->getDevRequires())) {
|
||||||
|
$io->writeError('<warning>No dependencies installed. Try running composer install or update.</warning>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($composer) {
|
if ($composer) {
|
||||||
|
|
|
@ -677,7 +677,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO use scarier wording once we know for sure it doesn't do false positives anymore
|
// TODO use scarier wording once we know for sure it doesn't do false positives anymore
|
||||||
throw new RepositorySecurityException('The contents of '.$filename.' do not match its signature. This should indicate a man-in-the-middle attack. Try running composer again and report this if you think it is a mistake.');
|
throw new RepositorySecurityException('The contents of '.$filename.' do not match its signature. This could indicate a man-in-the-middle attack. Try running composer again and report this if you think it is a mistake.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = JsonFile::parseJson($json, $filename);
|
$data = JsonFile::parseJson($json, $filename);
|
||||||
|
|
Loading…
Reference in New Issue