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:
Kai Kreuzer 2016-11-26 12:17:48 +01:00 committed by GitHub
parent 8c5fc34d32
commit d3a81fe8c7

View File

@ -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()]));
}
}