mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
allow spaces in the list of add-ons in addons.cfg (#85)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
8c5fc34d32
commit
d3a81fe8c7
@ -298,7 +298,9 @@ public class FeatureInstaller implements ConfigurationListener {
|
||||
String[] addons = ((String) install).split(",");
|
||||
installFeatures(service, type, addons);
|
||||
Set<String> addonsToUninstall = getAllAddonsOfType(type);
|
||||
addonsToUninstall.removeAll(Arrays.asList(addons));
|
||||
for (String addon : addons) {
|
||||
addonsToUninstall.remove(addon.trim());
|
||||
}
|
||||
uninstallFeatures(service, type, addonsToUninstall.toArray(new String[addonsToUninstall.size()]));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user