distgit: Generators don't have a length
This is fallout from the previous commit.
This commit is contained in:
parent
a11c53cb4d
commit
3ff24f67b2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue