From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/toolchain:master commit in: scripts/
Date: Thu, 23 Apr 2015 19:42:32 +0000 (UTC) [thread overview]
Message-ID: <1429818140.5b66092319411b31a66e8c69bc8d0599bf99c255.vapier@gentoo> (raw)
commit: 5b66092319411b31a66e8c69bc8d0599bf99c255
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 23 19:42:20 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Apr 23 19:42:20 2015 +0000
URL: https://gitweb.gentoo.org/proj/toolchain.git/commit/?id=5b660923
scripts: fix gdb ebuild parsing
scripts/common.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/common.py b/scripts/common.py
index 2da9139..892834c 100644
--- a/scripts/common.py
+++ b/scripts/common.py
@@ -96,7 +96,11 @@ def get_ver(ebuild):
raise ValueError('could not parse %s' % ebuild)
dots = m.group(1)
stamp = m.group(4)
- return distutils.version.LooseVersion('%s-%s' % (dots, stamp))
+ if stamp:
+ v = '%s-%s' % (dots, stamp)
+ else:
+ v = dots
+ return distutils.version.LooseVersion(v)
def parse_args(argv):
next reply other threads:[~2015-04-23 19:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-23 19:42 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-01-14 21:40 [gentoo-commits] proj/toolchain:master commit in: scripts/ Mike Frysinger
2016-01-14 21:40 Mike Frysinger
2015-07-15 4:11 Mike Frysinger
2015-04-13 4:14 Mike Frysinger
2014-10-24 5:26 Mike Frysinger
2014-10-17 4:06 Mike Frysinger
2014-10-17 4:05 Mike Frysinger
2014-06-15 0:58 Mike Frysinger
2014-06-15 0:57 Mike Frysinger
2014-06-15 0:55 Mike Frysinger
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=1429818140.5b66092319411b31a66e8c69bc8d0599bf99c255.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox