diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-03-25T16·06+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-03-25T16·06+0100 |
commit | 7ea6ecf855dee69a1cd938c3fe7e4e132be00b24 (patch) | |
tree | 0607f4f32d9c764f7df324e81e733ca84c991936 /perl/lib | |
parent | 5114a07d9578e06c66862270a3d624fc0944f33a (diff) |
addToStore(): Take explicit name argument
Diffstat (limited to 'perl/lib')
-rw-r--r-- | perl/lib/Nix/Store.xs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs index fd2a6e2e8278..6a94bc90b23f 100644 --- a/perl/lib/Nix/Store.xs +++ b/perl/lib/Nix/Store.xs @@ -282,7 +282,7 @@ SV * addToStore(char * srcPath, int recursive, char * algo) PPCODE: try { doInit(); - Path path = store->addToStore(srcPath, recursive, parseHashType(algo)); + Path path = store->addToStore(baseNameOf(srcPath), srcPath, recursive, parseHashType(algo)); XPUSHs(sv_2mortal(newSVpv(path.c_str(), 0))); } catch (Error & e) { croak(e.what()); |