mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
firmware: duplicates stay in the config #1663
When we install "os-debug" it will deinstall "os-debug-devel" so we should update our logic.
This commit is contained in:
parent
fba3861477
commit
b1702d0c0a
@ -90,6 +90,14 @@ class FirmwareController extends ApiControllerBase
|
||||
switch ($action) {
|
||||
case 'install':
|
||||
case 'reinstall':
|
||||
/* find the development/stable equivalent */
|
||||
$other = preg_replace('/-devel$/', '', $name);
|
||||
if ($other == $name) {
|
||||
$other = "$name-devel";
|
||||
}
|
||||
if (isset($plugins[$other])) {
|
||||
unset($plugins[$other]);
|
||||
}
|
||||
$plugins[$name] = 'hello';
|
||||
break;
|
||||
case 'remove':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user