djournal 0.9.0 → 0.9.1
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.
- package/lib/installer/index.js +1 -1
- package/package.json +1 -1
package/lib/installer/index.js
CHANGED
|
@@ -476,7 +476,7 @@ function copyRecord(sourceRoot, target, relative, oldRecord, harness) {
|
|
|
476
476
|
const absolute = resolveWithin(target, relative);
|
|
477
477
|
const current = readOptional(absolute);
|
|
478
478
|
if (oldRecord) {
|
|
479
|
-
if (current === null || sha256(current) !== oldRecord.installedHash) {
|
|
479
|
+
if (current === null || (sha256(current) !== oldRecord.installedHash && !current.equals(source))) {
|
|
480
480
|
throw new InstallerError(`modified installed asset: ${relative}`, "ASSET_CONFLICT");
|
|
481
481
|
}
|
|
482
482
|
} else if (current !== null && !current.equals(source)) {
|