File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
15
15
### Removed
16
16
17
17
### Fixed
18
+ - Library installation no longer "fails" if the library is already installed
18
19
19
20
### Security
20
21
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ def install_boards(boardfamily)
190
190
# @param name [String] the library name
191
191
# @return [bool] whether the command succeeded
192
192
def _install_library ( library_name )
193
- success = run_and_capture ( flag_install_library , library_name ) [ :success ]
193
+ result = run_and_capture ( flag_install_library , library_name )
194
+
195
+ already_installed = result [ :err ] . include? ( "Library is already installed: #{ library_name } " )
196
+ success = result [ :success ] || already_installed
194
197
195
198
@libraries_indexed = ( @libraries_indexed || success ) if library_name == WORKAROUND_LIB
196
199
success
@@ -237,7 +240,7 @@ def library_present?(library_name)
237
240
def update_library_index
238
241
# install random lib so the arduino IDE grabs a new library index
239
242
# see: https://github.com/arduino/Arduino/issues/3535
240
- install_library ( "USBHost" )
243
+ install_library ( WORKAROUND_LIB )
241
244
end
242
245
243
246
# use a particular board for compilation
You can’t perform that action at this time.
0 commit comments