All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: fix high RC version parsing in dependency library
@ 2015-04-27 23:56 Mathy Vanhoef
  2015-04-28  8:27 ` Arend van Spriel
  0 siblings, 1 reply; 5+ messages in thread
From: Mathy Vanhoef @ 2015-04-27 23:56 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: backports

This updates the dependency library to handle RC versions up to 39. For
example, coccinelle version "1.0.0" is now correctly treated as being higher
than version "1.0.0-rc24".

Signed-off-by: Mathy Vanhoef <vanhoefm@gmail.com>
---
 lib/bpreqs.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bpreqs.py b/lib/bpreqs.py
index 6c46670..4399c6d 100644
--- a/lib/bpreqs.py
+++ b/lib/bpreqs.py
@@ -98,7 +98,7 @@ class Req:
                 if (rc == ""):
                     rc = 0
                 else:
-                    rc = int(rc) - 20
+                    rc = int(rc) - 40
                 extra = int(rc)
             else:
                 extra = int(rel_specs['EXTRAVERSION']) + 10
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-28 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 23:56 [PATCH] backports: fix high RC version parsing in dependency library Mathy Vanhoef
2015-04-28  8:27 ` Arend van Spriel
2015-04-28 10:26   ` Mathy Vanhoef
2015-04-28 12:25     ` Eliad Peller
2015-04-28 20:29       ` Hauke Mehrtens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.