mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
firmware: ignore os-OPNBEcore plugin since dependency is automatic
This commit is contained in:
parent
854350f14b
commit
166758a2e5
@ -116,10 +116,16 @@ function plugins_disk_get()
|
||||
$filename = basename($name);
|
||||
$prefix = explode('.', $filename)[0];
|
||||
|
||||
/* do not register from set-provided metadata */
|
||||
if ($prefix == 'base' || $prefix == 'kernel' || $prefix == 'pkgs') {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* do not register for business addition */
|
||||
if ($prefix == 'OPNBEcore') {
|
||||
continue;
|
||||
}
|
||||
|
||||
$ret = json_decode(@file_get_contents($name), true);
|
||||
if ($ret == null || !isset($ret['product_id'])) {
|
||||
echo "Ignoring invalid metadata: $name" . PHP_EOL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user