Closed spyrkob closed 2 years ago
@spyrkob , I think that this change is possibly not needed. One could check if the plan.isEmpty and not do an update. That is what Galleon CLI is doing: https://github.com/wildfly/galleon/blob/main/cli/src/main/java/org/jboss/galleon/cli/cmd/maingrp/UpdateCommand.java#L133 WDYT?
Yeah, I don't think it's needed, but the way ProvisionManager.apply
works currently can be surprising. Maybe if the plan is empty ProvisionManager.apply should do nothing or throw an exception?
Either way I'm happy to close this PR if you want to.
@spyrkob +1 to close it.
Issue: https://issues.redhat.com/browse/GAL-334