Skip to content

Commit

Permalink
Update dev pkgdepends
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Nov 8, 2024
1 parent f498104 commit 552bbb5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/pkgdepends/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Config/testthat/edition: 3
Encoding: UTF-8
RoxygenNote: 7.3.2
NeedsCompilation: yes
Packaged: 2024-11-07 16:41:51 UTC; gaborcsardi
Packaged: 2024-11-08 09:37:25 UTC; gaborcsardi
Author: Gábor Csárdi [aut, cre],
Posit Software, PBC [cph, fnd]
Maintainer: Gábor Csárdi <[email protected]>
9 changes: 8 additions & 1 deletion src/library/pkgdepends/R/type-deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ parse_remote_deps <- function(specs, config, ...) {
resolve_remote_deps <- function(remote, direct, config, cache,
dependencies, ...) {

if (file.exists(file.path(remote$path, "DESCRIPTION"))) {
in_pkg <- tryCatch(find_package_root(remote$path), error = function(x) NULL)
if (!is.null(in_pkg)) {
ret <- resolve_remote_local(remote, direct, config, cache,
dependencies, ...)
} else {
Expand Down Expand Up @@ -67,6 +68,12 @@ resolve_remote_local_autodeps <- function(remote, direct, config, cache,
dsc <- desc::desc("!new")
hard <- deps$package[deps$type == "prod"]
soft <- deps$package[deps$type != "prod"]
dsc$set(
Package = "localprojectautoscan",
Version = "1.0.0",
Title = "Local Project",
License = "Unknown"
)
for (p in hard) dsc$set_dep(p, type = "Depends")
for (s in soft) dsc$set_dep(p, type = "Suggests")
dsc$write(tmpdesc)
Expand Down

0 comments on commit 552bbb5

Please sign in to comment.