fix install-pkg different arch cache bug

This commit is contained in:
crazywhalecc 2024-03-15 14:17:48 +08:00 committed by Jerry Ma
parent 8358a985b3
commit 632f904f30

View File

@ -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 !");