redownload on not found

This commit is contained in:
Robin Appelman 2018-02-24 12:30:17 +01:00
commit 9e88898d7a

View file

@ -18,7 +18,7 @@ class Migrate {
public function migrateDemo(array $demo): bool {
$name = basename($demo['url']);
if (!$this->store->exists($name)) {
throw new \Exception('demo not found: ' . $this->store->generatePath($name));
$this->reDownloadDemo($demo);
}
$hash = $this->store->hash($name);