distgit: Generators don't have a length

This is fallout from the previous commit.
This commit is contained in:
Mathieu Bridon 2015-07-13 23:03:44 +02:00
parent a11c53cb4d
commit 3ff24f67b2

View file

@ -68,7 +68,7 @@ def get_file_hash(full_path, hashtype):
def verify_source(dir, expected_name, expected_hash, hashtype):
sources = listdir(dir)
sources = list(listdir(dir))
if len(sources) == 0:
raise Exception("No source file in %s" % dir)