From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/
Date: Sun, 8 Nov 2015 17:37:48 +0000 (UTC) [thread overview]
Message-ID: <1447004187.8f226fd87cc96c997a6be5adb29ed6e6787d0791.dolsen@gentoo> (raw)
commit: 8f226fd87cc96c997a6be5adb29ed6e6787d0791
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 8 17:15:03 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Nov 8 17:36:27 2015 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=8f226fd8
equery/meta.py: Fix a traceback reported by Manuel Rueger
equery m python-whiteboard
* x11-apps/python-whiteboard [gentoo]
Herd: proxy-maintainers (proxy-maint <AT> gentoo.org)
Maintainer: lxnay <AT> gentoo.org (Fabio Erculiani)
Maintainer. Assign bugs to him
Maintainer: ziapannocchia <AT> gmail.com (Marco Clocchiatti)
Proxy maintainer. CC him on bugs
Traceback (most recent call last):
File "/usr/lib/python-exec/python2.7/equery", line 38, in <module>
equery.main(sys.argv)
File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/__init__.py", line 357, in main
loaded_module.main(module_args)
File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/meta.py", line 567, in main
call_format_functions(best_match, matches)
File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/meta.py", line 338, in call_format_functions
upstream = format_upstream(best_match.metadata.upstream())
File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/meta.py", line 220, in format_upstream
upmaints = format_maintainers(up.maintainers)
File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/meta.py", line 185, in format_maintainers
maintstr += " (%s)" % (maint.name,) if maint.name else ''
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
pym/gentoolkit/equery/meta.py | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/pym/gentoolkit/equery/meta.py b/pym/gentoolkit/equery/meta.py
index d3342cd..1a07999 100644
--- a/pym/gentoolkit/equery/meta.py
+++ b/pym/gentoolkit/equery/meta.py
@@ -179,14 +179,11 @@ def format_maintainers(maints):
result = []
for maint in maints:
- maintstr = ''
- maintstr = maint.email
+ maintstr = maint.email or ''
if CONFIG['verbose']:
- maintstr += " (%s)" % (maint.name,) if maint.name else ''
- maintstr += " - %s" % (maint.restrict,) if maint.restrict else ''
- maintstr += "\n%s" % (
- (maint.description,) if maint.description else ''
- )
+ maintstr += " (%s)" % (maint.name or'')
+ maintstr += " - %s" % (maint.restrict or '')
+ maintstr += "\n%s" % (maint.description or '')
result.append(maintstr)
return result
next reply other threads:[~2015-11-08 17:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-08 17:37 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-09 2:42 [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/ Brian Dolbec
2015-11-09 20:52 Brian Dolbec
2016-06-06 19:29 Brian Dolbec
2016-06-30 20:44 Paul Varner
2016-06-30 23:36 Paul Varner
2017-09-05 15:32 Mike Gilbert
2018-05-01 12:32 Mike Pagano
2022-07-09 5:17 Sam James
2022-07-10 1:24 Brian Dolbec
2022-07-10 16:23 Brian Dolbec
2022-07-10 16:23 Brian Dolbec
2022-07-10 18:01 Brian Dolbec
2022-07-10 18:41 Brian Dolbec
2022-07-28 15:29 Brian Dolbec
2022-07-28 15:29 Brian Dolbec
2023-07-18 22:26 Sam James
2023-07-18 22:30 Sam James
2023-08-05 5:38 Sam James
2023-09-19 19:13 Sam James
2024-03-07 18:49 Sam James
2024-03-07 18:49 Sam James
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=1447004187.8f226fd87cc96c997a6be5adb29ed6e6787d0791.dolsen@gentoo \
--to=dolsen@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