[gnome-python-desktop] Fix crash when parsing "bug-buddy --version"
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-python-desktop] Fix crash when parsing "bug-buddy --version"
- Date: Sat, 28 Nov 2009 15:38:34 +0000 (UTC)
commit fa2af1b8eca243075dbdd3c6546ca3143c9ed78e
Author: Frank Solensky <frank solensky org>
Date: Fri Oct 30 01:24:04 2009 -0400
Fix crash when parsing "bug-buddy --version"
_bug_buddy_check crashed when the third output token from
"bug-buddy --version" isn't a version identifier. Use the final token
wscript | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wscript b/wscript
index f37c5a2..b32d7c3 100644
--- a/wscript
+++ b/wscript
@@ -60,7 +60,7 @@ def _bug_buddy_check(conf):
conf.env.append_value('MODULES_AVAILABLE', 'bugbuddy')
if conf.find_program('bug-buddy', var='BUG_BUDDY'):
ver_string = Utils.cmd_output("%s --version" % (conf.env['BUG_BUDDY'],))
- ver = ver_string.split()[2]
+ ver = ver_string.split()[-1]
ver = [int(x) for x in ver.split('.')]
if ver >= [2,16]:
conf.env.append_value('MODULES_TO_BUILD', 'bugbuddy')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]