diff --git a/NEWS.md b/NEWS.md index 86d016d..13fb2d4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ # audit.base 0.6.15 _2024-06-06_ - feat: Add support for Centos - fix: Update software version numbers +- fix: Fix output for Posit drivers # audit.base 0.6.14 _2024-04-04_ - fix: Improve feedback when checking sys deps diff --git a/R/software-versions.R b/R/software-versions.R index 20c4759..4f27444 100644 --- a/R/software-versions.R +++ b/R/software-versions.R @@ -24,10 +24,11 @@ print_colour_versions = function(installed) { } print_colour_version = function(row) { - software_name = glue::glue("{stringr::str_to_title(row$software)} v{row$major}") - latest_version = glue::glue("latest v{row$version}") + major = if ("major" %in% colnames(row)) paste0(" v", row$major) else "" + software_name = glue::glue("{stringr::str_to_title(row$software)}{major}") + latest_version = glue::glue("v{row$version}") if (is.na(row$installed_version)) { - cli::cli_alert_danger("{software_name}: {latest_version} not installed") + cli::cli_alert_danger("{software_name}: latest {latest_version} not installed") return(invisible(NULL)) }