From 632f904f30d5188b58e9549ff561d2b8eb5c772b Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Fri, 15 Mar 2024 14:17:48 +0800 Subject: [PATCH] fix install-pkg different arch cache bug --- src/SPC/store/PackageManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SPC/store/PackageManager.php b/src/SPC/store/PackageManager.php index 336bbd66..6ff2faef 100644 --- a/src/SPC/store/PackageManager.php +++ b/src/SPC/store/PackageManager.php @@ -24,6 +24,7 @@ class PackageManager default => throw new WrongUsageException('Unsupported OS!'), }; $config = Config::getPkg("{$pkg_name}-{$arch}-{$os}"); + $pkg_name = "{$pkg_name}-{$arch}-{$os}"; } if ($config === null) { throw new WrongUsageException("Package [{$pkg_name}] does not exist, please check the name and correct it !");