Use renamed variable (filter_attrs to attr)

This commit is contained in:
Bo Maryniuk 2016-01-13 17:03:43 +01:00
parent b68e1228e9
commit 6710e4900d

View file

@ -493,7 +493,7 @@ def info(*packages, **attr):
continue
if key not in ['description', 'name'] and value:
pkg_data[key] = value
if filter_attrs and 'description' in filter_attrs or not filter_attrs:
if attr and 'description' in attr or not attr:
pkg_data['description'] = os.linesep.join(descr)
if pkg_name:
ret[pkg_name] = pkg_data