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:
bceacfc
)
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>
Wed, 12 Dec 2012 11:33:23 +0000
(19:33 +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 eed99c8141036d7b69106c257610355fbfd8ece5..5b5a2992fc21d2ea9f186ee1984f468c7c85ea92 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