Skip to content

Commit

Permalink
fix install-pkg different arch cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Mar 15, 2024
1 parent 8358a98 commit 632f904
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SPC/store/PackageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static function installPackage(string $pkg_name, ?array $config = null, b
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 !");
Expand Down

0 comments on commit 632f904

Please sign in to comment.