mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Fix zig check on fresh installed spc
This commit is contained in:
@@ -350,7 +350,10 @@ class PackageInstaller
|
|||||||
}
|
}
|
||||||
// Fallback: if the download cache is missing (e.g. download failed or cache was cleared),
|
// Fallback: if the download cache is missing (e.g. download failed or cache was cleared),
|
||||||
// still check whether the files are physically present in buildroot.
|
// still check whether the files are physically present in buildroot.
|
||||||
if ($package instanceof LibraryPackage) {
|
// Note: TargetPackage extends LibraryPackage, but target packages (e.g. zig) have no
|
||||||
|
// static-libs/headers configured, so isInstalled() would trivially return true for them.
|
||||||
|
// Only apply this fallback to pure library packages.
|
||||||
|
if ($package instanceof LibraryPackage && !($package instanceof TargetPackage)) {
|
||||||
return $package->isInstalled();
|
return $package->isInstalled();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user