diff options
author | Jürg Billeter <j@bitron.ch> | 2019-07-24 11:09:45 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-08-08 14:38:08 +0200 |
commit | 4019765ca18cc624d3084273a71620a5de5cdc88 (patch) | |
tree | ca70189cd5b7194aaf3f5a7625427c9360822629 | |
parent | 517917d18247c9624353784eac223ff38842dff1 (diff) | |
download | buildstream-4019765ca18cc624d3084273a71620a5de5cdc88.tar.gz |
cascache.py: Fix check_exists in _reachable_refs_dir()
If `check_exists` is set, missing directories should raise a
FileNotFoundError.
-rw-r--r-- | src/buildstream/_cas/cascache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index 470a5e9c0..479b08a02 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -792,6 +792,9 @@ class CASCache(): directory.ParseFromString(f.read()) except FileNotFoundError: + if check_exists: + raise + # Just exit early if the file doesn't exist return |