Bug 17820

Summary: Падает python.req.py
Product: Sisyphus Reporter: rlz <rlz>
Component: rpm-build-pythonAssignee: Ivan Zakharyaschev <imz>
Status: CLOSED DUPLICATE QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: darktemplar, george, imz, ldv
Version: unstable   
Hardware: all   
OS: Linux   

Description rlz 2008-11-08 14:34:45 MSK
При попытке создать пакет python.req.py падает с backtrace:

/usr/lib/rpm/python.req.py: /home/rlz/tmp/Tartarus-clients-core-buildroot/usr/share/Tartarus/ClientsCore/Tartarus/common/ice.py: line=44 IGNORE module=Tartarus
Traceback (most recent call last):
  File "/usr/lib/rpm/python.req.py", line 206, in <module>
    for item in match(lis) :
  File "/usr/lib/rpm/python.req.py", line 99, in match
    for item in match(node,deep) :
  File "/usr/lib/rpm/python.req.py", line 99, in match
    for item in match(node,deep) :
  File "/usr/lib/rpm/python.req.py", line 99, in match
    for item in match(node,deep) :
  File "/usr/lib/rpm/python.req.py", line 88, in match
    deps.append(node[2][1][1])
IndexError: string index out of range
Comment 1 rlz 2008-11-08 14:41:43 MSK
Выяснил, что падает если в файле есть относительный импорт:

from ..<module> import ...
Comment 2 Andrey Rahmatullin 2008-11-08 14:45:27 MSK

*** This bug has been marked as a duplicate of bug 17154 ***