[Python-apps-team] Bug#712383: svnmailer: crashes with python-subversion

Emilio Pozuelo Monfort pochu at debian.org
Sat Jun 15 14:10:43 UTC 2013


Package: svnmailer
Version: 1.0.8-12
Severity: important
Tags: wheezy

Hi,

svnmailer has an instance of #683188 and needs to be updated to work with
pysubversion from wheezy. This affects svn repositories on alioth since the
ugprade to wheezy. The attached patch fixes it. It would be great to get an
update in p-u so we can get it fixed in alioth.

Arguably pysubversion should export svn_core.SVN_STREAM_CHUNK_SIZE as an int and
not a long type since it expects an int in svn_stream_* calls. But I don't know
if that would break other things so this patch should be safe.

Cheers,
Emilio

pochu at vasks:/svn/pkg-gnome/hooks$ /usr/bin/svn-mailer --commit --config
/svn/pkg-gnome/hooks/svnmailer.conf --repository /svn/pkg-gnome --revision 38594
One or more notifiers crashed. You may want to send the following traceback(s)
to the author:

------------------------------------------------------------------------------
Notifier: svnmailer.util.URLTruncatingDecorator
Revision: 38594
Groups: [u'bysource']
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/svnmailer/main.py", line 101, in run
    notifier.run()
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_mail.py", line 62, in run
    for mail in self.getMails():
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_mail.py", line 83, in
getMails
    for mail in self.composeMail():
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_textmail.py", line 131,
in composeMail
    self.writeNotification()
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_textmail.py", line 379,
in writeNotification
    self.__super.writeNotification()
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_mail.py", line 96, in
writeNotification
    self.writeDiffList()
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_textmail.py", line 414,
in writeDiffList
    self.__super.writeDiffList()
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_text.py", line 183, in
writeDiffList
    self.writeContentDiff(change)
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_textmail.py", line 419,
in writeContentDiff
    self.__super.writeContentDiff(change)
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_text.py", line 352, in
writeContentDiff
    change, enc = enc, default = default
  File "/usr/lib/pymodules/python2.7/svnmailer/notifier/_base.py", line 320, in
dumpContent
    fp, change.getBasePath(), change.getBaseRevision()
  File "/usr/lib/pymodules/python2.7/svnmailer/subversion.py", line 358, in
dumpPathContent
    stream, svn_core.SVN_STREAM_CHUNK_SIZE
  File "/usr/lib/pymodules/python2.7/libsvn/core.py", line 4801, in svn_stream_read
    return _core.svn_stream_read(*args)
TypeError: expecting an integer for the buffer size
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svnmailer.diff
Type: text/x-diff
Size: 663 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20130615/9adc7b5e/attachment.diff>


More information about the Python-apps-team mailing list