diff --git a/osbuild/objectstore.py b/osbuild/objectstore.py index 579589bc..9f1dcef4 100644 --- a/osbuild/objectstore.py +++ b/osbuild/objectstore.py @@ -423,6 +423,10 @@ class ObjectStore(contextlib.AbstractContextManager): with self.cache.store(object_id) as name: path = os.path.join(self.cache, name) + # we clamp the mtime of `obj` itself so that it + # resuming a snapshop and building with a snapshot + # goes through the same code path + obj.clamp_mtime() obj.clone(path) def cleanup(self):