aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-28 18:07:10 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-28 18:07:10 +0100
commit22a754c091f765061f59bef5ce091268493bb138 (patch)
treee0e12a576a01307ecb97fa043497ca2840a3a3e6 /src/libstore/store-api.hh
parent2e953b567ebbcd3aaaf71bf592ab733bdcdd6797 (diff)
Fix GC failures on bad store path names
It failed on names like '/nix/store/9ip48nkc9rfy0a4yaw98lp6gipqlib1a-'.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 861b96930..a1cfb314a 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -281,6 +281,8 @@ public:
StorePath parseStorePath(std::string_view path) const;
+ std::optional<StorePath> maybeParseStorePath(std::string_view path) const;
+
std::string printStorePath(const StorePath & path) const;
// FIXME: remove