Browse Source

fu: handle `ResourceUpdated` event and `Verifying` status

epiphany 1 year ago
parent
commit
f1d7783d99
2 changed files with 3 additions and 1 deletions
  1. 2 1
      bin/fud/fu/src/main.rs
  2. 1 0
      bin/fud/fu/src/util.rs

+ 2 - 1
bin/fud/fu/src/main.rs

@@ -205,7 +205,8 @@ impl Fu {
                     match params.get("event").unwrap().get::<String>().unwrap().as_str() {
                         "download_started" |
                         "metadata_download_completed" |
-                        "chunk_download_completed" => {
+                        "chunk_download_completed" |
+                        "resource_updated" => {
                             print_progress_bar(info);
                         }
                         "download_completed" => {

+ 1 - 0
bin/fud/fu/src/util.rs

@@ -25,6 +25,7 @@ pub fn status_to_colorspec(status: &str) -> ColorSpec {
             "seeding" => Some(Color::Green),
             "discovering" => Some(Color::Magenta),
             "incomplete" => Some(Color::Red),
+            "verifying" => Some(Color::Yellow),
             _ => None,
         })
         .set_bold(true)