Package: reportbug
Version: 3.21
Severity: grave
Tags: patch
Justification: renders package unusable


When executing reportbug

[EMAIL PROTECTED]:~$ reportbug
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 52, in ?
    import reportbug_submit
  File "/usr/share/reportbug/reportbug_submit.py", line 354
    while failed != True:
    ^
SyntaxError: invalid syntax

It's just a tabbing matter, so I attach here the patch for this and
a lacking colon after an "if-clause", in between the same "while" loop:




--- /usr/share/reportbug/reportbug_submit.py    2006-06-06 13:21:08.000000000 
+0200
+++ /usr/share/reportbug/reportbug_submit.py.old        2006-06-06 
13:21:16.000000000 +0200
@@ -350,34 +350,34 @@
         toaddrs = [x[1] for x in alist]
         smtp_message = re.sub(r'(?m)^[.]', '..', message)
 
-       # Modified by AP 2006-03-29
-       while failed != True:
-               ewrite("Connecting to %s via SMTP...\n", smtphost)
-               try:
-                       conn = smtplib.SMTP(smtphost)
-                       if smtptls:
-                               conn.starttls()
-                       if smtpuser:
-                               if not smtppasswd:
-                                       smtppasswd = ui.get_password(
-                                               'Enter SMTP password for [EMAIL 
PROTECTED]: ' %
-                                               (smtpuser, smtphost))
-                               conn.login(smtpuser, smtppasswd)
-                       conn.sendmail(fromaddr, toaddrs, smtp_message)
-                       conn.quit()
-               except (socket.error, smtplib.SMTPException), x:
-                       
-                       # If wrong password, try again...
-                       if smtplib.SMTPResponseException.smtp_code == '535':
-                               ewrite('SMTP error: authentication failed.  Try 
again.')
-                               continue
-                       
-                       failed = True
-                       ewrite('SMTP send failure: %s\n', x)
-                       fh, msgname = TempFile(prefix=tfprefix)
-                       fh.write(message)
-                       fh.close()
-                       ewrite('Wrote bug report to %s\n', msgname)
+               # Modified by AP 2006-03-29
+               while failed != True:
+                       ewrite("Connecting to %s via SMTP...\n", smtphost)
+                       try:
+                               conn = smtplib.SMTP(smtphost)
+                               if smtptls:
+                                       conn.starttls()
+                               if smtpuser:
+                                       if not smtppasswd:
+                                               smtppasswd = ui.get_password(
+                                                       'Enter SMTP password 
for [EMAIL PROTECTED]: ' %
+                                                       (smtpuser, smtphost))
+                                       conn.login(smtpuser, smtppasswd)
+                               conn.sendmail(fromaddr, toaddrs, smtp_message)
+                               conn.quit()
+                       except (socket.error, smtplib.SMTPException), x:
+                               
+                               # If wrong password, try again...
+                               if smtplib.SMTPResponseException.smtp_code == 
'535'
+                                       ewrite('SMTP error: authentication 
failed.  Try again.')
+                                       continue
+                               
+                               failed = True
+                               ewrite('SMTP send failure: %s\n', x)
+                               fh, msgname = TempFile(prefix=tfprefix)
+                               fh.write(message)
+                               fh.close()
+                               ewrite('Wrote bug report to %s\n', msgname)
     else:
         try:
             pipe.write(message)






-- Package-specific info:
** /root/.reportbugrc:
reportbug_version "3.17"
mode standard
ui text
realname "Alvaro G. M."
email "[EMAIL PROTECTED]"
no-check-uid

-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (999, 'experimental'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages reportbug depends on:
ii  python2.3                     2.3.5-9.1  An interactive high-level object-o

Versions of packages reportbug recommends:
pn  python2.3-cjkcodecs | python2 <none>     (no description available)

-- no debconf information


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

Reply via email to