forked from lix-project/lix
diffLockFiles(): Fix assertion failure
There are some cases where this inequality didn't hold, in particular due to the Input / TreeInfo merge, where we're not always showing narHash.
This commit is contained in:
parent
488ff83e6b
commit
9ef6048d78
|
@ -243,7 +243,6 @@ std::string diffLockFiles(const LockFile & oldLocks, const LockFile & newLocks)
|
||||||
++i;
|
++i;
|
||||||
} else {
|
} else {
|
||||||
if (!(i->second->lockedRef == j->second->lockedRef)) {
|
if (!(i->second->lockedRef == j->second->lockedRef)) {
|
||||||
assert(i->second->lockedRef.to_string() != j->second->lockedRef.to_string());
|
|
||||||
res += fmt("* Updated '%s': '%s' -> '%s'\n",
|
res += fmt("* Updated '%s': '%s' -> '%s'\n",
|
||||||
concatStringsSep("/", i->first),
|
concatStringsSep("/", i->first),
|
||||||
i->second->lockedRef,
|
i->second->lockedRef,
|
||||||
|
|
Loading…
Reference in a new issue