Skip to content

Commit 1cbdd63

Browse files
committed
fix for GRAILS-6444 "Grails install-plugin (for local plugin) did not upgrade an existing version, but installed another version"
1 parent 6b5c2f0 commit 1cbdd63

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/java/org/codehaus/groovy/grails/resolve/PluginInstallEngine.groovy

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,11 @@ class PluginInstallEngine {
201201

202202
assertNoExistingInlinePlugin(name)
203203

204-
if (!overwrite) {
205-
def abort = checkExistingPluginInstall(name, version)
206-
if (abort) {
207-
registerPluginWithMetadata(name, version)
208-
return
209-
}
204+
def abort = checkExistingPluginInstall(name, version)
205+
206+
if (abort && !overwrite) {
207+
registerPluginWithMetadata(name, version)
208+
return
210209
}
211210

212211
eventHandler "StatusUpdate", "Installing zip ${pluginZip}..."

0 commit comments

Comments
 (0)