Package: apt-listchanges
Version: 2.67
Severity: important

As of this version, the following traceback is received when trying to send 
email:

  apt-listchanges: Mailing root: apt-listchanges: changelogs for ujezd
  Traceback (most recent call last):
    File "/usr/bin/apt-listchanges", line 215, in ?
      main()
    File "/usr/bin/apt-listchanges", line 195, in main
      apt_listchanges.mail_changes(config.email_address, changes, subject)
    File "/usr/share/apt-listchanges/apt_listchanges.py", line 314, in 
mail_changes
      message = email.Message.Message(charset)
  TypeError: __init__() takes exactly 1 argument (2 given)

The fix is very small:

  --- /usr/share/apt-listchanges/apt_listchanges.py.orig        2006-10-03 
10:03:11.000000000 +0200
  +++ /usr/share/apt-listchanges/apt_listchanges.py     2006-10-04 
11:44:03.000000000 +0200
  @@ -311,7 +311,8 @@
       charset = email.Charset.Charset('utf-8')
       charset.body_encoding = '8bit'
       charset.header_encoding = email.Charset.QP
  -    message = email.Message.Message(charset)
  +    message = email.Message.Message()
  +    message.set_charset(charset)
       message['Subject'] = subject
       message['To'] = address
       message.set_payload(changes)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to