Skip to content

Commit

Permalink
Update from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Sep 26, 2017
1 parent 7a1c8d9 commit 53eb50c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/y2packager/release_notes_fetchers/url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ def curl_download(url, filename, max_time: 300)
max_time
)
ret = Yast::SCR.Execute(Yast::Path.new(".target.bash"), cmd)
filtered_cmd = cmd.sub(/--proxy-user '[^']*'/, "--proxy-user @PROXYPASSWORD@")
log.info("#{filtered_cmd} returned #{ret}")
log.info("#{cmd.sub(curl_proxy_args, "--proxy-user @PROXYPASSWORD@")} returned #{ret}")
reason = CURL_GIVE_UP_RETURN_CODES[ret]
if reason
log.info "Communication with server failed (#{reason}), skipping further attempts."
Expand Down

0 comments on commit 53eb50c

Please sign in to comment.