Skip to content

Commit 4499746

Browse files
committed
Be explict about what package version is being downloaded
1 parent 29f1672 commit 4499746

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: lib/arduino_ci/arduino_downloader.rb

+5-4
Original file line numberDiff line numberDiff line change
@@ -161,32 +161,33 @@ def execute
161161
return false
162162
end
163163

164+
arduino_package = "Arduino #{@desired_ide_version} package"
164165
attempts = 0
165166

166167
loop do
167168
if File.exist? package_file
168-
@output.puts "Arduino package seems to have been downloaded already" if attempts.zero?
169+
@output.puts "#{arduino_package} seems to have been downloaded already" if attempts.zero?
169170
break
170171
elsif attempts >= DOWNLOAD_ATTEMPTS
171172
break @output.puts "After #{DOWNLOAD_ATTEMPTS} attempts, failed to download #{package_url}"
172173
else
173-
@output.print "Attempting to download Arduino package with #{downloader}"
174+
@output.print "Attempting to download #{arduino_package} with #{downloader}"
174175
download
175176
@output.puts
176177
end
177178
attempts += 1
178179
end
179180

180181
if File.exist? extracted_file
181-
@output.puts "Arduino package seems to have been extracted already"
182+
@output.puts "#{arduino_package} seems to have been extracted already"
182183
elsif File.exist? package_file
183184
@output.print "Extracting archive with #{extracter}"
184185
extract
185186
@output.puts
186187
end
187188

188189
if File.exist? self.class.force_install_location
189-
@output.puts "Arduino package seems to have been installed already"
190+
@output.puts "#{arduino_package} seems to have been installed already"
190191
elsif File.exist? extracted_file
191192
install
192193
else

0 commit comments

Comments
 (0)