From ad24e372f5059dc1d6688e0fd01fb4fdb38f2908 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 28 Oct 2012 12:25:58 -0700 Subject: validate_desktop_entry: handle df-utils-0.21 hint --- pym/portage/util/_desktop_entry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pym/portage/util/_desktop_entry.py') diff --git a/pym/portage/util/_desktop_entry.py b/pym/portage/util/_desktop_entry.py index 2973d12ff..54b095030 100644 --- a/pym/portage/util/_desktop_entry.py +++ b/pym/portage/util/_desktop_entry.py @@ -62,7 +62,9 @@ def validate_desktop_entry(path): if output_lines: filtered_output = [] for line in output_lines: - if line[len(path)+2:] in _ignored_errors: + msg = line[len(path)+2:] + # "hint:" output is new in desktop-file-utils-0.21 + if msg.startswith('hint: ') or msg in _ignored_errors: continue filtered_output.append(line) output_lines = filtered_output -- cgit v1.2.3-1-g7c22