Fix removed summary

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2016-10-11 19:47:21 +03:00
parent 6562a3e28a
commit f466586597

View file

@ -410,11 +410,12 @@ class PackageManager(object):
data = Utils().read_file(self.meta.pkg_path + package)
for line in data.splitlines():
if line.startswith("UNCOMPRESSED PACKAGE SIZE:"):
digit = re.sub("\D", "", line[26:])
digit = float((''.join(re.findall(
"[-+]?\d+[\.]?\d*[eE]?[-+]?\d*", line[26:]))))
if "M" in line[26:]:
self.size += float(digit) * 1024
self.size += digit * 1024
else:
self.size += float(digit)
self.size += digit
break
def display(self):