Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211706 - gentoolkit/gentoolkit-0.2.4_rc3: depends on >=dev-lang/python-2.0, should be >=dev-lang/python-2.5
Summary: gentoolkit/gentoolkit-0.2.4_rc3: depends on >=dev-lang/python-2.0, should be ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2008-02-28 09:52 UTC by Jan Kuipers
Modified: 2008-04-24 02:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
glsa-check-import-MIMEText.patch (glsa-check-import-MIMEText.patch,418 bytes, patch)
2008-02-28 15:46 UTC, michael@smith-li.com
Details | Diff
MIMEText patch (glsa-check-import-MIMEText.patch,427 bytes, patch)
2008-03-18 02:50 UTC, Rodrigo Lazo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kuipers 2008-02-28 09:52:17 UTC
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 michael@smith-li.com 2008-02-28 15:46:25 UTC
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.
Comment 2 Jan Kuipers 2008-02-29 08:45:36 UTC
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 Rodrigo Lazo 2008-03-18 02:50:09 UTC
Created attachment 146444 [details, diff]
MIMEText patch

Patch should be from email.MIMEText import MIMEText
Comment 4 Paul Varner (RETIRED) gentoo-dev 2008-03-18 16:59:13 UTC
Leave open until fix is included in a release.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2008-03-19 19:37:51 UTC
$ 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 Paul Varner (RETIRED) gentoo-dev 2008-04-24 02:32:49 UTC
Released in gentoolkit-0.2.4_rc4