Skip to content

Commit

Permalink
Combine distro name and version in changed output
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 2, 2024
1 parent b556b9a commit 695a8eb
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions buildpacks/ruby/src/layers/ruby_install_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,10 @@ impl MetadataDiff for Metadata {
now = style::value(self.ruby_version.to_string())
));
}
if distro_name != &self.distro_name {
if distro_name != &self.distro_name || distro_version != &self.distro_version {
differences.push(format!(
"distro name ({old} to {now})",
old = style::value(distro_name),
now = style::value(&self.distro_name)
));
}
if distro_version != &self.distro_version {
differences.push(format!(
"distro version ({old} to {now})",
old = style::value(distro_version),
now = style::value(&self.distro_version)
"Distribution ({} {} to {} {})",
distro_name, distro_version, self.distro_name, self.distro_version
));
}
if cpu_architecture != &self.cpu_architecture {
Expand Down

0 comments on commit 695a8eb

Please sign in to comment.