From f8bf44bf76c25af971dbbff2c32f529bf658d339 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Aug 2022 12:20:09 +0200 Subject: [PATCH] Add an activity for copying sources to the store Fixes #1184 since it's now visible in the progress bar which path is taking a long time to copy. --- src/libfetchers/input-accessor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libfetchers/input-accessor.cc b/src/libfetchers/input-accessor.cc index 54b173cf6..4ded83bfe 100644 --- a/src/libfetchers/input-accessor.cc +++ b/src/libfetchers/input-accessor.cc @@ -112,6 +112,8 @@ StorePath InputAccessor::fetchToStore( } else debug("source path '%s' is uncacheable", showPath(path)); + Activity act(*logger, lvlChatty, actUnknown, fmt("copying '%s' to the store", showPath(path))); + auto source = sinkToSource([&](Sink & sink) { dumpPath(path, sink, filter ? *filter : defaultPathFilter); });