From 5918ca0d0ab449da3e04a7f90b18e823558b92f9 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Tue, 7 Jan 2025 16:50:21 +0100 Subject: [PATCH] Add workaround for pak See https://github.com/r-universe-org/help/issues/556 --- src/tools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools.js b/src/tools.js index 575a095..36b3fad 100644 --- a/src/tools.js +++ b/src/tools.js @@ -146,11 +146,12 @@ function unpack_deps(x){ return x; } -export function doc_to_dcf(doc){ +export function doc_to_dcf(doc, i){ //this clones 'doc' and then deletes some fields const { _id, _fileid, _type, Distro, ...x } = unpack_deps(doc); if(_type == 'linux'){ x.Platform = 'x86_64-pc-linux-gnu' //pak likes this to identify binaries + x.Distro = Distro; //workaround for https://github.com/r-lib/pak/issues/733 } let keys = Object.keys(x); return keys.map(function(key){