m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-16 17:13:46 -05:00

Show unknown when image tag does not exist

This commit is contained in:
Sergio
2025-01-15 17:09:19 +02:00
parent 3ac6fb57e9
commit 4bbb53cd67
2 changed files with 13 additions and 8 deletions

View File

@@ -103,7 +103,6 @@ impl Image {
}
}
/// Compares remote digest of the image with its local digests to determine if it has an update or not
pub fn has_update(&self) -> Status {
if self.error.is_some() {
Status::Unknown(self.error.clone().unwrap())
@@ -190,7 +189,7 @@ impl Image {
},
time: self.time_ms,
server: None,
status: Status::Unknown(String::new()),
status: has_update,
}
}