Merge pull request #12662 from eliasp/win_repo-empty-productname

Fix numerous crashes in consumers of Windows package lists due to empty package names.
This commit is contained in:
Thomas S Hatch 2014-05-09 17:09:42 -06:00
commit 0e50d06b34

View file

@ -376,7 +376,10 @@ def _get_reg_software():
"DisplayVersion")
if name not in ignore_list:
if prd_name != 'Not Found':
reg_software[prd_name] = prd_ver
# some MS Office updates don't register a product name which means
# their information is useless
if prd_name != '':
reg_software[prd_name] = prd_ver
return reg_software