From: Gui Chen Date: Sat, 22 Sep 2012 10:41:13 +0000 (+0800) Subject: fix version comparison for bootstrap X-Git-Tag: 0.16~107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74f09e79d6a2743e8c527ec8124b10f5be706f2a;p=tools%2Fmic.git fix version comparison for bootstrap Signed-off-by: Gui Chen --- diff --git a/mic/utils/misc.py b/mic/utils/misc.py index eed99c8..5b5a299 100644 --- 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