Skip to content

Commit

Permalink
fix: skip epoch in version
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed May 11, 2024
1 parent 291b3b6 commit b01841f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buildit-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,15 @@ pub async fn find_update_and_update_checksum(
.into_iter()
.next();

let ver = ver
let mut ver = ver
.context(format!("Failed to find pkg version: {}", pkg))?
.1;

// skip epoch
if let Some((_prefix, suffix)) = ver.split_once(':') {
ver = suffix.to_string();
}

let branch = format!("{pkg}-{ver}");
let title = format!("{pkg}: update to {ver}");

Expand Down

0 comments on commit b01841f

Please sign in to comment.