Skip to content

Commit

Permalink
Add workaround for pak
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 7, 2025
1 parent 10a8ec7 commit 5918ca0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 5918ca0

Please sign in to comment.