Skip to content

Commit

Permalink
fix: fledge:::release_after_cran_built_binaries() no longer throws …
Browse files Browse the repository at this point in the history
…an error if no release exists
  • Loading branch information
krlmlr committed Nov 16, 2024
1 parent ec224ee commit d144706
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/auto.R
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ release_after_cran_built_binaries <- function() {

last_release_version <- get_last_release_version()

if (length(last_release_version) == 0) {
if (fledge_chatty()) {
cli_alert_info("No previous release found.")
}
return(invisible())
}

ppm_packages <- utils::available.packages(repos = "https://packagemanager.posit.co/cran/latest")

if (!(pkg %in% rownames(ppm_packages))) {
Expand Down

0 comments on commit d144706

Please sign in to comment.