* Re: [devel] zephulor-0.9a-alt3: i586 rebuild failed
  @ 2007-11-20 16:17 ` Alexey Tourbin
  0 siblings, 0 replies; only message in thread
From: Alexey Tourbin @ 2007-11-20 16:17 UTC (permalink / raw)
  To: devel; +Cc: Vitaly Lipatov
[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]
On Mon, Nov 19, 2007 at 10:56:50PM +0300, QA Team Robot wrote:
> Package: zephulor-0.9a-alt3
> Packager: Vitaly Lipatov <lav@altlinux>
> Status: i586 rebuild failed.
> Please investigate.
> python.req: ERROR: /usr/src/tmp/zephulor-buildroot/usr/share/games/zephulor/maptool/interface.py: invalid syntax (line 76)
> Traceback (most recent call last):
>   File "/usr/lib/rpm/python.req.py", line 173, in ?
>     lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1)
>   File "<string>", line 76
>     if self.isactive = 0:
>                      ^
> SyntaxError: invalid syntax
Здесь отловилась реальная ошибка в питоновском коде.
/usr/share/games/zephulor/maptool/interface.py:
    73      def activate(self):
    74          """Activate if deactivated, returns nonzero on success"""
    75
    76          if self.isactive = 0:
    77              self.isactive = 1
    78              return(1)
    79          else:
    80              return
    81
    82      def deactivate(self):
    83          """Deactivate if activated, returns nonzero on success"""
    84
    85          if self.isactive = 1:
    86              self.isactive = 0
    87              return(1)
    88          else:
    89              return
В условии if должно быть не присваивание, а сравнение.
Желательно известить об этом апстрим.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply	[flat|nested] only message in thread