Fix line for strip

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2018-01-10 19:04:58 +01:00
parent a60e0972e8
commit 51087f6c16

View file

@ -418,7 +418,7 @@ class PackageManager(object):
if line.startswith("UNCOMPRESSED PACKAGE SIZE:"):
digit = float((''.join(re.findall(
"[-+]?\d+[\.]?\d*[eE]?[-+]?\d*", line[26:]))))
self.file_size = line[27:].strip()
self.file_size = line[26:].strip()
if "M" in line[26:]:
self.size += digit * 1024
else: