First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 211706
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jan Kuipers <jen@bokkepoot.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
glsa-check-import-MIMEText.patch glsa-check-import-MIMEText.patch patch Michael A. Smith 2008-02-28 15:46 0000 418 bytes Details | Diff
glsa-check-import-MIMEText.patch MIMEText patch patch Rodrigo Lazo 2008-03-18 02:50 0000 427 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 211706 depends on: Show dependency tree
Show dependency graph
Bug 211706 blocks: 170220
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-02-28 09:52 0000
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.

------- Comment #1 From Michael A. Smith 2008-02-28 15:46:25 0000 -------
Created an attachment (id=144868) [edit]
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.

------- Comment #2 From Jan Kuipers 2008-02-29 08:45:36 0000 -------
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

------- Comment #3 From Rodrigo Lazo 2008-03-18 02:50:09 0000 -------
Created an attachment (id=146444) [edit]
MIMEText patch

Patch should be from email.MIMEText import MIMEText 

------- Comment #4 From Paul Varner 2008-03-18 16:59:13 0000 -------
Leave open until fix is included in a release.

------- Comment #5 From Paul Varner 2008-03-19 19:37:51 0000 -------
$ 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

------- Comment #6 From Paul Varner 2008-04-24 02:32:49 0000 -------
Released in gentoolkit-0.2.4_rc4

First Last Prev Next    No search results available      Search page      Enter new bug