mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
* Bug in clearSubstitutes().
This commit is contained in:
parent
bb2e53699f
commit
c757d16c8c
1 changed files with 2 additions and 1 deletions
|
@ -282,7 +282,8 @@ static PathSet getReferers(const Transaction & txn, const Path & storePath)
|
|||
void setReferences(const Transaction & txn, const Path & storePath,
|
||||
const PathSet & references)
|
||||
{
|
||||
if (!isRealisablePath(txn, storePath))
|
||||
/* For unrealisable paths, we can only clear the references. */
|
||||
if (references.size() > 0 && !isRealisablePath(txn, storePath))
|
||||
throw Error(
|
||||
format("cannot set references for path `%1%' which is invalid and has no substitutes")
|
||||
% storePath);
|
||||
|
|
Loading…
Reference in a new issue