<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>211706</bug_id>
          
          <creation_ts>2008-02-28 09:52 0000</creation_ts>
          <short_desc>gentoolkit/gentoolkit-0.2.4_rc3: depends on &gt;=dev-lang/python-2.0, should be &gt;=dev-lang/python-2.5</short_desc>
          <delta_ts>2008-04-24 02:32:49 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Portage Development</product>
          <component>Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InSVN</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>170220</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>jen@bokkepoot.net</reporter>
          <assigned_to>tools-portage@gentoo.org</assigned_to>
          <cc>rlazo.paz@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>jen@bokkepoot.net</who>
            <bug_when>2008-02-28 09:52:17 0000</bug_when>
            <thetext>gentoolkit/gentoolkit-0.2.4_rc3 depends on &gt;=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 &quot;/usr/bin/glsa-check&quot;, line 311, in ?
    from email.mime.text import MIMEText
ImportError: No module named mime.text


Expected Results:  
only mailed output.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>michael@smith-li.com</who>
            <bug_when>2008-02-28 15:46:25 0000</bug_when>
            <thetext>Created an attachment (id=144868)
glsa-check-import-MIMEText.patch

Python-2.5 changes the location of the import, but it&apos;s still there in earlier versions.

Please test this patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jen@bokkepoot.net</who>
            <bug_when>2008-02-29 08:45:36 0000</bug_when>
            <thetext>Result after patch: 

# glsa-check -m affected
Traceback (most recent call last):
  File &quot;/usr/bin/glsa-check&quot;, line 349, in ?
    myattachments.append(MIMEText(str(myfd.getvalue()), _charset=&quot;utf8&quot;))
TypeError: &apos;module&apos; object is not callable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rlazo.paz@gmail.com</who>
            <bug_when>2008-03-18 02:50:09 0000</bug_when>
            <thetext>Created an attachment (id=146444)
MIMEText patch

Patch should be from email.MIMEText import MIMEText </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2008-03-18 16:59:13 0000</bug_when>
            <thetext>Leave open until fix is included in a release.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2008-03-19 19:37:51 0000</bug_when>
            <thetext>$ svn commit -m &quot;Fix imports so mail functionality in glsa-check works with python versions less than 2.5 (Bug 211706)&quot;
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2008-04-24 02:32:49 0000</bug_when>
            <thetext>Released in gentoolkit-0.2.4_rc4</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144868</attachid>
            <date>2008-02-28 15:46 0000</date>
            <desc>glsa-check-import-MIMEText.patch</desc>
            <filename>glsa-check-import-MIMEText.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGdsc2EtY2hlY2sKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gZ2xzYS1jaGVjawkocmV2aXNpb24gNDc1
KQorKysgZ2xzYS1jaGVjawkod29ya2luZyBjb3B5KQpAQCAtMzEzLDggKzMxMywxMSBAQAogCQkK
IAlpbXBvcnQgc29ja2V0CiAJZnJvbSBTdHJpbmdJTyBpbXBvcnQgU3RyaW5nSU8KLQlmcm9tIGVt
YWlsLm1pbWUudGV4dCBpbXBvcnQgTUlNRVRleHQKLQkKKwl0cnk6CisJCWZyb20gZW1haWwubWlt
ZS50ZXh0IGltcG9ydCBNSU1FVGV4dAorCWV4Y2VwdCBJbXBvcnRFcnJvcjoKKwkJZnJvbSBlbWFp
bCBpbXBvcnQgTUlNRVRleHQKKwogCSMgY29sb3IgZG9lc24ndCBtYWtlIGFueSBzZW5zZSBmb3Ig
bWFpbAogCW5vY29sb3IoKQogCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>146444</attachid>
            <date>2008-03-18 02:50 0000</date>
            <desc>MIMEText patch</desc>
            <filename>glsa-check-import-MIMEText.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGdsc2EtY2hlY2sKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gZ2xzYS1jaGVjawkocmV2aXNpb24gNDc1
KQorKysgZ2xzYS1jaGVjawkod29ya2luZyBjb3B5KQpAQCAtMzEzLDggKzMxMywxMSBAQAogCQkK
IAlpbXBvcnQgc29ja2V0CiAJZnJvbSBTdHJpbmdJTyBpbXBvcnQgU3RyaW5nSU8KLQlmcm9tIGVt
YWlsLm1pbWUudGV4dCBpbXBvcnQgTUlNRVRleHQKLQkKKwl0cnk6CisJCWZyb20gZW1haWwubWlt
ZS50ZXh0IGltcG9ydCBNSU1FVGV4dAorCWV4Y2VwdCBJbXBvcnRFcnJvcjoKKwkJZnJvbSBlbWFp
bC5NSU1FVGV4dCBpbXBvcnQgTUlNRVRleHQKKwogCSMgY29sb3IgZG9lc24ndCBtYWtlIGFueSBz
ZW5zZSBmb3IgbWFpbAogCW5vY29sb3IoKQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>