Skip to content

Commit 6d3ee99

Browse files
authored
Merge pull request #12545 from NixOS/mergify/bp/2.26-maintenance/pr-12543
Fix perl store bindings (backport #12543)
2 parents a305883 + cd19354 commit 6d3ee99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/perl/lib/Nix/Store.xs

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ StoreWrapper::computeFSClosure(int flipDirection, int includeOutputs, ...)
194194
PPCODE:
195195
try {
196196
StorePathSet paths;
197-
for (int n = 2; n < items; ++n)
197+
for (int n = 3; n < items; ++n)
198198
THIS->store->computeFSClosure(THIS->store->parseStorePath(SvPV_nolen(ST(n))), paths, flipDirection, includeOutputs);
199199
for (auto & i : paths)
200200
XPUSHs(sv_2mortal(newSVpv(THIS->store->printStorePath(i).c_str(), 0)));
@@ -208,7 +208,7 @@ StoreWrapper::topoSortPaths(...)
208208
PPCODE:
209209
try {
210210
StorePathSet paths;
211-
for (int n = 0; n < items; ++n) paths.insert(THIS->store->parseStorePath(SvPV_nolen(ST(n))));
211+
for (int n = 1; n < items; ++n) paths.insert(THIS->store->parseStorePath(SvPV_nolen(ST(n))));
212212
auto sorted = THIS->store->topoSortPaths(paths);
213213
for (auto & i : sorted)
214214
XPUSHs(sv_2mortal(newSVpv(THIS->store->printStorePath(i).c_str(), 0)));
@@ -234,7 +234,7 @@ StoreWrapper::exportPaths(int fd, ...)
234234
PPCODE:
235235
try {
236236
StorePathSet paths;
237-
for (int n = 1; n < items; ++n) paths.insert(THIS->store->parseStorePath(SvPV_nolen(ST(n))));
237+
for (int n = 2; n < items; ++n) paths.insert(THIS->store->parseStorePath(SvPV_nolen(ST(n))));
238238
FdSink sink(fd);
239239
THIS->store->exportPaths(paths, sink);
240240
} catch (Error & e) {

0 commit comments

Comments
 (0)