Skip to content

Commit f242f2a

Browse files
committed
Don't register successful install if the platform was manually set
1 parent 583821d commit f242f2a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/edu/wpi/first/wpilib/opencv/installer/Installer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ private static void install(ArtifactType type) {
239239
unzipped = dst.getParent();
240240
}
241241
copyAll(unzipped, Paths.get(installLocation));
242-
InstallChecker.registerSuccessfulInstall(type, openCvVersion);
242+
if (!overridePlatform) {
243+
InstallChecker.registerSuccessfulInstall(type, openCvVersion);
244+
}
243245
} catch (Exception e) {
244246
e.printStackTrace(System.out);
245247
}

0 commit comments

Comments
 (0)