diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-11-17 13:58:55 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-11-17 13:58:55 +0100 |
commit | e6b7c7b79c697f1d8508930964e8c810f04a8963 (patch) | |
tree | 0085f736803a3217f11aa429620a120145d2c00b /src/libstore/store-api.cc | |
parent | bccff827dc968b08bddda03aadcb3d9cc41c2719 (diff) |
Cleanup
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 8 |
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)); +} + } |