|
@@ -98,10 +98,6 @@ class Updater
|
|
$versions = $repository->getPackages();
|
|
$versions = $repository->getPackages();
|
|
$em = $this->doctrine->getManager();
|
|
$em = $this->doctrine->getManager();
|
|
|
|
|
|
- if ($repository->hadInvalidBranches()) {
|
|
|
|
- throw new InvalidRepositoryException('Some branches contained invalid data and were discarded, it is advised to review the log and fix any issues present in branches');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
usort($versions, function ($a, $b) {
|
|
usort($versions, function ($a, $b) {
|
|
$aVersion = $a->getVersion();
|
|
$aVersion = $a->getVersion();
|
|
$bVersion = $b->getVersion();
|
|
$bVersion = $b->getVersion();
|
|
@@ -169,6 +165,9 @@ class Updater
|
|
$package->setUpdatedAt(new \DateTime);
|
|
$package->setUpdatedAt(new \DateTime);
|
|
$package->setCrawledAt(new \DateTime);
|
|
$package->setCrawledAt(new \DateTime);
|
|
$em->flush();
|
|
$em->flush();
|
|
|
|
+ if ($repository->hadInvalidBranches()) {
|
|
|
|
+ throw new InvalidRepositoryException('Some branches contained invalid data and were discarded, it is advised to review the log and fix any issues present in branches');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
private function updateInformation(Package $package, PackageInterface $data, $flags)
|
|
private function updateInformation(Package $package, PackageInterface $data, $flags)
|