aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-11-17 13:58:55 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-11-17 13:58:55 +0100
commite6b7c7b79c697f1d8508930964e8c810f04a8963 (patch)
tree0085f736803a3217f11aa429620a120145d2c00b /src/libstore/store-api.cc
parentbccff827dc968b08bddda03aadcb3d9cc41c2719 (diff)
Cleanup
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 83d3a1fa1..7f808f45a 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -1007,6 +1007,14 @@ Derivation Store::readDerivation(const StorePath & drvPath)
}
}
+Derivation Store::readInvalidDerivation(const StorePath & drvPath)
+{
+ return parseDerivation(
+ *this,
+ readFile(Store::toRealPath(drvPath)),
+ Derivation::nameFromPath(drvPath));
+}
+
}