Skip to content

Commit 3fdc0dc

Browse files
committed
Fix built field for packages that set NeedsCompilation
1 parent 9c38174 commit 3fdc0dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/tools/R/admin.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ function(dir, outDir, builtStamp=character())
6666
builtStamp <- format(Sys.time(), "%Y-%m-%d %H:%M:%S",
6767
tz = "UTC", usetz = TRUE)
6868
}
69+
ncomp <- "NeedsCompilation" %in% nm && identical(db[["NeedsCompilation"]], "yes")
6970
Built <-
7071
paste0("R ",
7172
paste(R.version[c("major", "minor")], collapse = "."),
7273
"; ",
73-
if(dir.exists(file.path(dir, "src"))) OStype else "",
74+
if(dir.exists(file.path(dir, "src")) || ncomp) OStype else "",
7475
"; ",
7576
builtStamp,
7677
"; ",

0 commit comments

Comments
 (0)