From e26b46cac6f397d0981748c2035154df9a52d226 Mon Sep 17 00:00:00 2001 From: Philippe Daouadi Date: Mon, 9 Jul 2018 20:01:09 +0200 Subject: [PATCH] downloader: support pkgs without digest Closes #94 --- src/downloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/downloader.cpp b/src/downloader.cpp index 77210b9d..1a9a1505 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -150,7 +150,7 @@ void Downloader::do_download(const DownloadItem& item) item.content.c_str(), item.url.c_str(), item.rif.empty() ? nullptr : item.rif.data(), - item.digest.data())) + item.digest.empty() ? nullptr : item.digest.data())) return; LOG("download of %s completed!", item.name.c_str()); switch (item.type)