<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>18922</bug_id>
          
          <creation_ts>2009-02-20 19:13:12 +0300</creation_ts>
          <short_desc>/usr/lib/rpm/python.req doesnt support relative python module import</short_desc>
          <delta_ts>2009-02-20 19:25:32 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-build-python</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17154</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eugene Ostapets">eostapets</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>darktemplar</cc>
    
    <cc>george</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>mek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86240</commentid>
    <comment_count>0</comment_count>
    <who name="Eugene Ostapets">eostapets</who>
    <bug_when>2009-02-20 19:13:12 +0300</bug_when>
    <thetext>Питон с версии 2.5 поддерживает синтаксис &quot;относительного&quot; иморта:
http://www.python.org/dev/peps/pep-0328/ 


Пример кода:
from .. import MODULE_SUCCESS


Наш /usr/lib/rpm/python.req валист со следующей ошибкой на таком коде:
Traceback (most recent call last):
  File &quot;/usr/lib/rpm/python.req.py&quot;, line 206, in &lt;module&gt;
    for item in match(lis) :
  File &quot;/usr/lib/rpm/python.req.py&quot;, line 99, in match
    for item in match(node,deep) :
  File &quot;/usr/lib/rpm/python.req.py&quot;, line 99, in match
    for item in match(node,deep) :
  File &quot;/usr/lib/rpm/python.req.py&quot;, line 99, in match
    for item in match(node,deep) :
  File &quot;/usr/lib/rpm/python.req.py&quot;, line 88, in match
    deps.append(node[2][1][1])
IndexError: string index out of range
find-requires: ERROR: /usr/lib/rpm/python.req failed
ошибка: /bin/sh не удалось
ошибка: Невозможно найти Requires</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86241</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-02-20 19:25:32 +0300</bug_when>
    <thetext>dup

*** This bug has been marked as a duplicate of bug 17154 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>