diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-19T14·36+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-19T14·36+0000 |
commit | 06c77bf7a861221d41b5db9fad3002f13a14ed0e (patch) | |
tree | 8ddd8857f0364297bb8ffce1cf6a89b7cf0d396e /src/libstore/store.cc | |
parent | 863dcff6c5ffc163010ec1f9e6819bb9aaaadc29 (diff) |
* Change extension `.store' to `.drv'.
* Re-enable `nix-store --query --requisites'.
Diffstat (limited to 'src/libstore/store.cc')
-rw-r--r-- | src/libstore/store.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc index 51e2e7e7d2cc..01c724b918ae 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -217,6 +217,8 @@ void setReferences(const Transaction & txn, const Path & storePath, void queryReferences(const Path & storePath, PathSet & references) { Paths references2; + if (!isValidPath(storePath)) + throw Error(format("path `%1%' is not valid") % storePath); nixDB.queryStrings(noTxn, dbReferences, storePath, references2); references.insert(references2.begin(), references2.end()); } |