summaryrefslogtreecommitdiffstats
path: root/cnucnu/helper.py
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-04 00:04:42 +0300
committerTill Maas <opensource@till.name>2011-04-14 17:23:04 +0200
commit44d12d00649792a4d5da6c425bf3cb7c3fceb3f9 (patch)
tree66cf30ceaa1192c2906512329fc3f5338427c626 /cnucnu/helper.py
parent02a73ab3ec7bf131371fbb2a7eef192a8a5c23ad (diff)
downloadcnucnu-44d12d00649792a4d5da6c425bf3cb7c3fceb3f9.tar.gz
cnucnu-44d12d00649792a4d5da6c425bf3cb7c3fceb3f9.tar.xz
cnucnu-44d12d00649792a4d5da6c425bf3cb7c3fceb3f9.zip
Make upstream_cmp() case insensitive.
Diffstat (limited to 'cnucnu/helper.py')
-rw-r--r--cnucnu/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cnucnu/helper.py b/cnucnu/helper.py
index fb1777b..295a590 100644
--- a/cnucnu/helper.py
+++ b/cnucnu/helper.py
@@ -154,7 +154,7 @@ def upstream_cmp(v1, v2):
if diff == 0:
# both are rc, higher rc is newer
if rc1 and rc2:
- return cmp(rc1, rc2)
+ return cmp(rc1.lower(), rc2.lower())
# only first is rc, then second is newer
elif rc1:
return -1