aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-15 12:49:01 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-15 15:01:26 +0100
commitd0893725651a7657eab21ec4aad97146d2294c98 (patch)
tree4ec1213f2f8b7892bbd2c10f83ec0366afef16ec /src/libstore/local-store.cc
parent74f954ee6253ce1f934327d6c050fdbdeca8fac2 (diff)
Add function to extract hash part of a store path
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 13179459f..7c5945b2a 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -1064,7 +1064,7 @@ StringSet LocalStore::queryDerivationOutputNames(const Path & path)
Path LocalStore::queryPathFromHashPart(const string & hashPart)
{
- if (hashPart.size() != 32) throw Error("invalid hash part");
+ if (hashPart.size() != storePathHashLen) throw Error("invalid hash part");
Path prefix = settings.nixStore + "/" + hashPart;