aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file-cache.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-22 14:07:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-22 14:07:56 +0200
commit3acc68bec7c05ca2e1c21d104a64220e1199b34a (patch)
treee9fbc2226282568d076c980146c2d549fe78a468 /libbuild2/file-cache.cxx
parent21a23077ce1870c5e427730c4760057cf2eb54b6 (diff)
Fix bug in file cache logic (compression disabled)
Diffstat (limited to 'libbuild2/file-cache.cxx')
-rw-r--r--libbuild2/file-cache.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/file-cache.cxx b/libbuild2/file-cache.cxx
index 0c3ef9f..1c1424f 100644
--- a/libbuild2/file-cache.cxx
+++ b/libbuild2/file-cache.cxx
@@ -61,6 +61,8 @@ namespace build2
fail << comp_path_ << " (or its uncompressed variant) does not exist" <<
info << "consider cleaning the build state";
}
+ else
+ state_ = uncomp;
}
void file_cache::entry::