projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Extract _cmp function.
[bertos.git]
/
wizard
/
bertos_utils.py
diff --git
a/wizard/bertos_utils.py
b/wizard/bertos_utils.py
index f10d7dc59fafc11de78f98398a20763a83fed4d6..465808aaf657fb26f28240a7e85f44083f6c93e2 100644
(file)
--- a/
wizard/bertos_utils.py
+++ b/
wizard/bertos_utils.py
@@
-51,6
+51,9
@@
from _wizard_version import WIZARD_VERSION
from LoadException import VersionException, ToolchainException
+def _cmp(x, y):
+ return cmp(x["info"].get('ord', 0), y["info"].get('ord', 0))
+
def isBertosDir(directory):
return os.path.exists(directory + "/VERSION")