mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: pybugz: Add fixlet patches.
* gnu/packages/python.scm (python2-pybugz)[source]: Add 'patches' field. * gnu/packages/patches/pybugz-encode-error.patch, gnu/packages/patches/pybugz-stty.patch: New files. * gnu-system.am (dist_patch_DATA): Add them.
This commit is contained in:
parent
515eba4543
commit
6f194a1e77
4 changed files with 42 additions and 1 deletions
17
gnu/packages/patches/pybugz-encode-error.patch
Normal file
17
gnu/packages/patches/pybugz-encode-error.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
In case of 'AttributeError', 'value' is None, so do not try to
|
||||
access it.
|
||||
Submitted upstream.
|
||||
|
||||
--- pybugz-0.6.11/bugz.py 2006-09-02 14:35:37.000000000 +0200
|
||||
+++ pybugz-0.6.11/bugz.py 2014-05-05 16:02:20.000000000 +0200
|
||||
@@ -1249,9 +1254,9 @@ class PrettyBugz(Bugz):
|
||||
for field, name in FIELDS + MORE_FIELDS:
|
||||
try:
|
||||
value = result.find('//%s' % field).text
|
||||
+ print '%-12s: %s' % (name, value.encode(self.enc))
|
||||
except AttributeError:
|
||||
continue
|
||||
- print '%-12s: %s' % (name, value.encode(self.enc))
|
||||
|
||||
# Print out the cc'ed people
|
||||
cced = result.findall('.//cc')
|
Loading…
Add table
Add a link
Reference in a new issue