From 712b616a8443b940e94ac443499246f4de6ee5cd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Mar 2016 18:05:47 +0100 Subject: Move signatures from NarInfo to ValidPathInfo This allows queryPathInfo() to return signatures. --- src/libstore/store-api.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libstore/store-api.hh') diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 9a2c9daca08c..1a7440148322 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -98,6 +98,13 @@ struct ValidPathInfo unsigned long long narSize = 0; // 0 = unknown unsigned long long id; // internal use only + /* Whether the path is ultimately trusted, that is, it was built + locally or is content-addressable (e.g. added via addToStore() + or the result of a fixed-output derivation). */ + bool ultimate = false; + + StringSet sigs; // note: not necessarily verified + bool operator == (const ValidPathInfo & i) const { return -- cgit 1.4.1