projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6cb95a
)
fix version comparison for bootstrap
author
Gui Chen
<gui.chen@intel.com>
Sat, 22 Sep 2012 10:41:13 +0000
(18:41 +0800)
committer
Gui Chen
<gui.chen@intel.com>
Thu, 27 Sep 2012 08:08:31 +0000
(16:08 +0800)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/misc.py
patch
|
blob
|
history
diff --git
a/mic/utils/misc.py
b/mic/utils/misc.py
index
eed99c8
..
5b5a299
100644
(file)
--- a/
mic/utils/misc.py
+++ b/
mic/utils/misc.py
@@
-699,6
+699,7
@@
def get_package(pkg, repometadata, arch = None):
for row in con.execute(sql):
tmpver = "%s-%s" % (row[0], row[1])
if tmpver > ver:
+ ver = tmpver
pkgpath = "%s" % row[2]
target_repo = repo
break
@@
-708,6
+709,7
@@
def get_package(pkg, repometadata, arch = None):
for row in con.execute(sql):
tmpver = "%s-%s" % (row[0], row[1])
if tmpver > ver:
+ ver = tmpver
pkgpath = "%s" % row[2]
target_repo = repo
break