Fix bug in version_str_to_tup
svn: r16651
This commit is contained in:
parent
b1876829fb
commit
e25b523fc5
@ -88,7 +88,7 @@ def version_str_to_tup(sversion, positions):
|
|||||||
tup += (0,) * (positions - len(tup))
|
tup += (0,) * (positions - len(tup))
|
||||||
except:
|
except:
|
||||||
tup = (0,) * positions
|
tup = (0,) * positions
|
||||||
return tup
|
return tup[:positions]
|
||||||
|
|
||||||
class newplugin(object):
|
class newplugin(object):
|
||||||
"""
|
"""
|
||||||
@ -257,7 +257,7 @@ def load_addon_file(path, callback=None):
|
|||||||
gramps_target_version = results.get("gramps_target_version", None)
|
gramps_target_version = results.get("gramps_target_version", None)
|
||||||
id = results.get("id", None)
|
id = results.get("id", None)
|
||||||
if gramps_target_version:
|
if gramps_target_version:
|
||||||
vtup = version_str_to_tup(gramps_target_version, 2)
|
|
||||||
# Is it for the right version of gramps?
|
# Is it for the right version of gramps?
|
||||||
if vtup == const.VERSION_TUPLE[0:2]:
|
if vtup == const.VERSION_TUPLE[0:2]:
|
||||||
# If this version is not installed, or > installed, install it
|
# If this version is not installed, or > installed, install it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user