support/download: do not warn about missing hash file for repositories
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 6 Apr 2015 12:13:06 +0000 (14:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 6 Apr 2015 21:29:02 +0000 (23:29 +0200)
commitaa3a409b057a8559dfc0c06307c71e351d3bfda1
tree14f25538e86f0df9e4e491b21c36518d9f45d175
parent6f9f75af2a28dc54d1c8fa96744e8a98c06a44d2
support/download: do not warn about missing hash file for repositories

When downloading from a repository, we explicitly pass no hash file,
because we can't check hashes in that case.

However, we're still printing a message that there is a missign hash
file.

Beside being a bit annoying (since we can't do anything about it), it
may also be wrong, especially for packages for which we support multiple
versions, with some being downloaded via a git clone and others as
tarballs.

Just print no warning when the path to the hash file is empty.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/download/check-hash