forked from lix-project/lix
* Only invalidate paths when they are in fact valid.
This commit is contained in:
parent
ac2f665853
commit
0ea8b6993a
|
@ -546,6 +546,7 @@ void deleteFromStore(const Path & _path)
|
||||||
assertStorePath(path);
|
assertStorePath(path);
|
||||||
|
|
||||||
Transaction txn(nixDB);
|
Transaction txn(nixDB);
|
||||||
|
if (isValidPathTxn(txn, path))
|
||||||
invalidatePath(path, txn);
|
invalidatePath(path, txn);
|
||||||
txn.commit();
|
txn.commit();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue