Prefer direct Gitea release assets
ci / test (push) Has been cancelled
ci / fuzz-smoke (push) Has been cancelled
ci / windows-client (push) Has been cancelled
ci / package-release (linux-x86_64, ubuntu-latest) (push) Has been cancelled
ci / package-release (macos-aarch64, macos-14) (push) Has been cancelled
ci / package-release (macos-x86_64, macos-13) (push) Has been cancelled
ci / package-release (windows-x86_64, windows-latest) (push) Has been cancelled
ci / remote-bench (push) Has been cancelled
ci / test (push) Has been cancelled
ci / fuzz-smoke (push) Has been cancelled
ci / windows-client (push) Has been cancelled
ci / package-release (linux-x86_64, ubuntu-latest) (push) Has been cancelled
ci / package-release (macos-aarch64, macos-14) (push) Has been cancelled
ci / package-release (macos-x86_64, macos-13) (push) Has been cancelled
ci / package-release (windows-x86_64, windows-latest) (push) Has been cancelled
ci / remote-bench (push) Has been cancelled
This commit is contained in:
@@ -1431,13 +1431,13 @@ fn run_update(config: &dosh::config::ClientConfig, check_only: bool) -> Result<(
|
||||
if let Some(latest_url) = latest_release_download_url(&repo, artifact) {
|
||||
let mut status = "missing";
|
||||
let mut display_url = latest_url.clone();
|
||||
if url_reachable(&latest_url)? {
|
||||
status = "available";
|
||||
} else if let Some(tag_url) = latest_release_tag_download_url(&repo, artifact)?
|
||||
if let Some(tag_url) = latest_release_tag_download_url(&repo, artifact)?
|
||||
&& url_reachable(&tag_url)?
|
||||
{
|
||||
status = "available";
|
||||
display_url = tag_url;
|
||||
} else if url_reachable(&latest_url)? {
|
||||
status = "available";
|
||||
}
|
||||
println!("prebuilt: {status} ({artifact})");
|
||||
println!("prebuilt_url: {display_url}");
|
||||
@@ -4848,17 +4848,15 @@ impl DisconnectStatus {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Paint `text` on the terminal's bottom row using save/restore cursor so the
|
||||
/// app's cursor is untouched. Sequence: save cursor (ESC 7), move to the last
|
||||
/// row col 1, clear that row, set reverse-video cyan, write text, reset
|
||||
/// attributes, restore cursor (ESC 8).
|
||||
/// Paint `text` on the terminal's top row using save/restore cursor so the
|
||||
/// app's cursor is untouched.
|
||||
fn emit(&self, text: &str) -> Result<()> {
|
||||
let (_, rows) = terminal_size();
|
||||
let bytes = render_status_overlay(text, rows);
|
||||
emit_status(&bytes)
|
||||
}
|
||||
|
||||
/// Erase the bottom-row status line, again with save/restore cursor.
|
||||
/// Erase the top-row status bar, again with save/restore cursor.
|
||||
fn emit_clear(&self) -> Result<()> {
|
||||
let (_, rows) = terminal_size();
|
||||
emit_status(&render_status_clear(rows))
|
||||
|
||||
Reference in New Issue
Block a user