mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix install-pkg different arch cache bug
This commit is contained in:
parent
8358a985b3
commit
632f904f30
@ -24,6 +24,7 @@ class PackageManager
|
|||||||
default => throw new WrongUsageException('Unsupported OS!'),
|
default => throw new WrongUsageException('Unsupported OS!'),
|
||||||
};
|
};
|
||||||
$config = Config::getPkg("{$pkg_name}-{$arch}-{$os}");
|
$config = Config::getPkg("{$pkg_name}-{$arch}-{$os}");
|
||||||
|
$pkg_name = "{$pkg_name}-{$arch}-{$os}";
|
||||||
}
|
}
|
||||||
if ($config === null) {
|
if ($config === null) {
|
||||||
throw new WrongUsageException("Package [{$pkg_name}] does not exist, please check the name and correct it !");
|
throw new WrongUsageException("Package [{$pkg_name}] does not exist, please check the name and correct it !");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user