Fix line counting

This commit is contained in:
Aurélien Gâteau 2014-07-30 15:03:55 +02:00
parent 47762d3812
commit ecb16dcdca

View File

@ -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(