Skip to content
Snippets Groups Projects
Commit 44b8a739 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

python-apt: pep8 fix on previous patch

parent d5a37870
No related branches found
No related tags found
1 merge request!183Fix geoip-database-contrib
...@@ -95,7 +95,7 @@ diff -ru source.orig/apt/progress/base.py source/apt/progress/base.py ...@@ -95,7 +95,7 @@ diff -ru source.orig/apt/progress/base.py source/apt/progress/base.py
elif status == "pmstatus": elif status == "pmstatus":
- # FIXME: Float comparison - # FIXME: Float comparison
+ if isinstance(percent, str): + if isinstance(percent, str):
+ percent = float(percent.replace(',' , '.')) + percent = float(percent.replace(',', '.'))
if float(percent) != self.percent or status_str != self.status: if float(percent) != self.percent or status_str != self.status:
self.status_change(pkgname, float(percent), status_str.strip()) self.status_change(pkgname, float(percent), status_str.strip())
self.percent = float(percent) self.percent = float(percent)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment