From f06736315d99464b3ab38f8502699fa8da170856 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 19 Mar 2023 14:03:55 +0800 Subject: [PATCH] fix download cache problem --- src/SPC/store/Downloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SPC/store/Downloader.php b/src/SPC/store/Downloader.php index d88b0de2..4e883332 100644 --- a/src/SPC/store/Downloader.php +++ b/src/SPC/store/Downloader.php @@ -229,7 +229,7 @@ class Downloader public static function fetchSource(string $name, array $source): void { // 避免重复 fetch - if (!isset($source['path']) && !is_dir(FileSystem::convertPath(DOWNLOAD_PATH . "/{$name}")) || isset($source['path']) && is_dir(FileSystem::convertPath(SOURCE_PATH . "/{$source['path']}"))) { + if (!isset($source['path']) && is_dir(FileSystem::convertPath(DOWNLOAD_PATH . "/{$name}")) || isset($source['path']) && is_dir(FileSystem::convertPath(SOURCE_PATH . "/{$source['path']}"))) { logger()->notice("{$name} source already extracted"); return; }