From: Mathy Vanhoef <vanhoefm@gmail.com>
To: "Luis R. Rodriguez" <mcgrof@kernel.org>
Cc: backports@vger.kernel.org
Subject: [PATCH] backports: fix high RC version parsing in dependency library
Date: Tue, 28 Apr 2015 01:56:54 +0200 [thread overview]
Message-ID: <553ECCC6.2060604@gmail.com> (raw)
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
next reply other threads:[~2015-04-27 23:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 23:56 Mathy Vanhoef [this message]
2015-04-28 8:27 ` [PATCH] backports: fix high RC version parsing in dependency library Arend van Spriel
2015-04-28 10:26 ` Mathy Vanhoef
2015-04-28 12:25 ` Eliad Peller
2015-04-28 20:29 ` Hauke Mehrtens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=553ECCC6.2060604@gmail.com \
--to=vanhoefm@gmail.com \
--cc=backports@vger.kernel.org \
--cc=mcgrof@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.