sliftutils 1.7.115 → 1.7.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -258,7 +258,7 @@ export class StoreSync {
258
258
  tally.tombstone++;
259
259
  continue;
260
260
  }
261
- let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: file.path, forceSetImmutable: true, noChecks: true, internal: true });
261
+ let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: file.path, preserveWriteTime: true, forceSetImmutable: true, noChecks: true, internal: true });
262
262
  if (!copied) {
263
263
  // Undefined is two cases (see copyArchiveFile): our own disk already holding something newer is the boundary scan working as intended (our writes since the boundary outrank the neighbor's), only a genuinely unreadable file is worth a warning
264
264
  let local = await this.store.sources[0].source.getInfo(file.path);
@@ -494,7 +494,7 @@ export class StoreSync {
494
494
  }
495
495
  let holder = await this.store.getEntryHolder(entry);
496
496
  if (!holder) continue;
497
- let copied = await copyArchiveFile({ from: holder, to: source, path: key, forceSetImmutable: true, noChecks: true, internal: true });
497
+ let copied = await copyArchiveFile({ from: holder, to: source, path: key, preserveWriteTime: true, forceSetImmutable: true, noChecks: true, internal: true });
498
498
  if (!copied) {
499
499
  // Undefined is two cases (see copyArchiveFile). The source having a NEWER file than our index (the listing we pushed from was stale) is adopted exactly the way the pull direction adopts a listing entry - and pushing our stale copy stops. Otherwise the HOLDER could not produce the file, which the next round's pull re-resolves; either way, silence here was the bug.
500
500
  let theirs = await source.getInfo(key);
@@ -648,7 +648,7 @@ export class StoreSync {
648
648
  if (index >= pending.length) return;
649
649
  let { key, entry } = pending[index];
650
650
  try {
651
- let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: key, forceSetImmutable: true, noChecks: true, internal: true });
651
+ let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: key, preserveWriteTime: true, forceSetImmutable: true, noChecks: true, internal: true });
652
652
  if (copied) {
653
653
  copiedFiles++;
654
654
  copiedBytes += copied.size;