From 7ea6ecf855dee69a1cd938c3fe7e4e132be00b24 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 25 Mar 2015 17:06:12 +0100 Subject: addToStore(): Take explicit name argument --- perl/lib/Nix/Store.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl/lib/Nix') diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs index fd2a6e2e8..6a94bc90b 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()); -- cgit v1.2.3