Fix line counting

main
Aurélien Gâteau 11 years ago
parent 47762d3812
commit ecb16dcdca

@ -107,7 +107,7 @@ class UnsquashOperation:
sqfslist = subprocess.check_output(["unsquashfs", sqfslist = subprocess.check_output(["unsquashfs",
"-l", "-l",
entry.source]) entry.source])
filescount = sqfslist.splitlines().count() filescount = len(sqfslist.splitlines())
self.unpackstatus[entry.source].total = filescount self.unpackstatus[entry.source].total = filescount
imgbasename = os.path.splitext( imgbasename = os.path.splitext(

Loading…
Cancel
Save