diff --git a/go/engine/gpg_import_key.go b/go/engine/gpg_import_key.go
index <HASH>..<HASH> 100644
--- a/go/engine/gpg_import_key.go
+++ b/go/engine/gpg_import_key.go
@@ -149,7 +149,7 @@ func (e *GPGImportKeyEngine) Run(ctx *Context) (err error) {
 			break
 		}
 	}
-	if duplicate {
+	if duplicate && !e.arg.OnlyImport {
 		// This key's already been posted to the server.
 		res, err := ctx.GPGUI.ConfirmDuplicateKeyChosen(context.TODO(), 0)
 		if err != nil {
Fix `--only-import` of existing key in PGP select

Address one aspect of CORE-<I>