From 3ff24f67b2dbc84c69e0bd57885521f77170ad7c Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Mon, 13 Jul 2015 23:03:44 +0200 Subject: [PATCH] distgit: Generators don't have a length This is fallout from the previous commit. --- roles/distgit/files/make-new-lookaside-links | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/distgit/files/make-new-lookaside-links b/roles/distgit/files/make-new-lookaside-links index 09fdf9533d..33cbba5aad 100755 --- a/roles/distgit/files/make-new-lookaside-links +++ b/roles/distgit/files/make-new-lookaside-links @@ -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)