Use has_repo_update field in check-updates display
The CheckUpdates handler now reads has_repo_update to label each update with its source: [repo], [upstream], or [repo+upstream]. This was the last remaining warning — build should now be fully clean. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -413,17 +413,26 @@ fn run(cli: Cli) -> Result<()> {
|
||||
results.len().to_string().yellow().bold()
|
||||
);
|
||||
for r in &results {
|
||||
let tag = if r.has_repo_update && r.has_upstream_update {
|
||||
"repo+upstream"
|
||||
} else if r.has_repo_update {
|
||||
"repo"
|
||||
} else {
|
||||
"upstream"
|
||||
};
|
||||
|
||||
let mut line = format!(
|
||||
" {} {} → {}",
|
||||
" {} {} → {} [{}]",
|
||||
r.name.bold(),
|
||||
r.installed_version.red(),
|
||||
r.repo_version.green()
|
||||
r.repo_version.green(),
|
||||
tag.cyan()
|
||||
);
|
||||
if let Some(ref uv) = r.upstream_version {
|
||||
if r.has_upstream_update {
|
||||
line.push_str(&format!(
|
||||
" (upstream: {})",
|
||||
uv.cyan()
|
||||
" (latest: {})",
|
||||
uv.yellow()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user