about summary refs log tree commit diff
path: root/src/libstore/download.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-06-05T12·37+0200
committerEelco Dolstra <edolstra@gmail.com>2018-06-05T12·37+0200
commita2ec7a3bfd33a4792185a74e2ae20b48f7ac2de9 (patch)
tree0bccff5602f8700849c42d7fba5f87972f466473 /src/libstore/download.hh
parenta936a19da3c338ae55a31eda8ce446cbbc37de5a (diff)
Further improve upload messages
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r--src/libstore/download.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh
index f56274b2353c..da55df7a6e71 100644
--- a/src/libstore/download.hh
+++ b/src/libstore/download.hh
@@ -25,6 +25,11 @@ struct DownloadRequest
 
     DownloadRequest(const std::string & uri)
         : uri(uri), parentAct(getCurActivity()) { }
+
+    std::string verb()
+    {
+        return data ? "upload" : "download";
+    }
 };
 
 struct DownloadResult