gentoolkit/gentoolkit-0.2.4_rc3 depends on >=dev-lang/python-2.0, but glsa-check uses email.mime.text, which was introduced in python-2.5, hence it should depend on that. Reproducible: Always Steps to Reproduce: 1. glsa-check -m affected 2. 3. Actual Results: # glsa-check -m affected Traceback (most recent call last): File "/usr/bin/glsa-check", line 311, in ? from email.mime.text import MIMEText ImportError: No module named mime.text Expected Results: only mailed output.
Created attachment 144868 [details, diff] glsa-check-import-MIMEText.patch Python-2.5 changes the location of the import, but it's still there in earlier versions. Please test this patch.
Result after patch: # glsa-check -m affected Traceback (most recent call last): File "/usr/bin/glsa-check", line 349, in ? myattachments.append(MIMEText(str(myfd.getvalue()), _charset="utf8")) TypeError: 'module' object is not callable
Created attachment 146444 [details, diff] MIMEText patch Patch should be from email.MIMEText import MIMEText
Leave open until fix is included in a release.
$ svn commit -m "Fix imports so mail functionality in glsa-check works with python versions less than 2.5 (Bug 211706)" Sending ChangeLog Sending src/glsa-check/glsa-check Transmitting file data .. Committed revision 485. Patch tested with python-2.5.1 and python-2.4.4
Released in gentoolkit-0.2.4_rc4