Skip to content

Commit

Permalink
additional sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Mar 8, 2023
1 parent a9a0f20 commit 31ae17a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: renv
Type: Package
Title: Project Environments
Version: 0.17.0-29
Version: 0.17.0-30
Authors@R: c(
person("Kevin", "Ushey", role = c("aut", "cre"), email = "kevin@rstudio.com"),
person("Posit Software, PBC", role = c("cph", "fnd"))
Expand Down
8 changes: 5 additions & 3 deletions R/hydrate.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@ renv_hydrate_filter_impl <- function(package, path, library, update) {
# if so, we'll want to compare the version first and
# hydrate only if the requested version is newer than the current
descpath <- file.path(library, package, "DESCRIPTION")
desc <- catch(renv_description_read(path = descpath))
if (inherits(desc, "error"))
return(TRUE)
if (file.exists(descpath)) {
desc <- catch(renv_description_read(path = descpath))
if (inherits(desc, "error"))
return(TRUE)
}

# get the current package version
current <- catch(numeric_version(desc[["Version"]]))
Expand Down

0 comments on commit 31ae17a

Please sign in to comment.