aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-02 11:31:58 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-02 11:31:58 +0100
commit958ec5de568904a07ef050418088d882cbf2ea61 (patch)
treec3102f9fd58525521638a20f4dc7a10e231f2e02 /src/libstore
parentb2708694664f41f85ffc8cb6ca51cd0cc599806e (diff)
Cleanup
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/fetchers/fetchers.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/fetchers/fetchers.hh b/src/libstore/fetchers/fetchers.hh
index 7a7ce7d37..0ef79bc45 100644
--- a/src/libstore/fetchers/fetchers.hh
+++ b/src/libstore/fetchers/fetchers.hh
@@ -33,8 +33,12 @@ struct Input : std::enable_shared_from_this<Input>
virtual bool operator ==(const Input & other) const { return false; }
+ /* Check whether this is a "direct" input, that is, not
+ one that goes through a registry. */
virtual bool isDirect() const { return true; }
+ /* Check whether this is an "immutable" input, that is,
+ one that contains a commit hash or content hash. */
virtual bool isImmutable() const { return (bool) narHash; }
virtual bool contains(const Input & other) const { return false; }