Project

General

Profile

Actions

Bug #7946

closed

pkglint fails with TypeError in generic.py

Added by Alexander Pyhalov over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-03-07
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

pkglint dies on components/sunstudio12.1/build/manifest-i386-backend.depend.res with error:

Traceback (most recent call last):
  File "/usr/bin/pkglint", line 317, in <module>
    __ret = main_func()
  File "/usr/bin/pkglint", line 152, in main_func
    lint_engine.execute()
  File "/usr/lib/python2.7/vendor-packages/pkg/lint/engine.py", line 652, in execute
    action_checks)
  File "/usr/lib/python2.7/vendor-packages/pkg/lint/engine.py", line 976, in _check_manifest
    action_checks)
  File "/usr/lib/python2.7/vendor-packages/pkg/lint/engine.py", line 982, in _check_action
    checker.check(action, manifest, self)
  File "/usr/lib/python2.7/vendor-packages/pkg/lint/base.py", line 198, in check
    err=err),
  File "/usr/lib/python2.7/vendor-packages/pkg/actions/generic.py", line 315, in __str__
    out += " " + k + "=" + v
TypeError: cannot concatenate 'str' and 'set' objects
Error: 

it dies on attribute pair (variant.arch , set(['i386']) ).

The workaround is to treat set as list above.

Actions #1

Updated by Alexander Pyhalov over 4 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF