firmware: ignore os-OPNBEcore plugin since dependency is automatic

This commit is contained in:
Franco Fichtner 2022-10-25 09:48:37 +02:00
parent 854350f14b
commit 166758a2e5

View File

@ -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;