Repository navigation
analytics: batch reports for install, reinstall and upgrade #24561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
5888f6a
d88ece2
8dcd31a
fb12382
e36d265
7b7454a
2a60114
4bc7bf6
f5543a2
9520090
be1ad9b
cfa0e2b
b045214
a00b43a
920c957
edfddfb
7f476a9
2d722f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -342,6 +342,16 @@ def fetch(only: nil, heading: nil, allow_failures: false) | |
| sig { returns(T::Array[Downloadable]) } | ||
| attr_reader :failed_downloads | ||
|
|
||
| # Waits for just this download and returns whether it downloaded and passed its checksum | ||
| # verification. A failure is still reported once, by `fetch`. | ||
| sig { params(downloadable: Downloadable).returns(T::Boolean) } | ||
| def downloaded_and_verified?(downloadable) | ||
| download = @downloads_by_location[downloadable.cached_download] | ||
| return downloadable.downloaded_and_valid? if download.nil? | ||
|
|
||
| download.wait.fulfilled? | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Require content verification before returning true. For a corrupt cached immutable bottle, Use a content-verification result before returning true. Preserve the silent false result for rejected downloads. |
||
| end | ||
|
|
||
| sig { params(message: String).void } | ||
| def stdout_print_and_flush_if_tty(message) | ||
| stdout_print_and_flush(message) if tty_with_cursor_move_support? | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.