validate_desktop_entry: handle df-utils-0.21 hint
authorZac Medico <zmedico@gentoo.org>
Sun, 28 Oct 2012 19:25:58 +0000 (12:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 28 Oct 2012 19:25:58 +0000 (12:25 -0700)
pym/portage/util/_desktop_entry.py

index 2973d12fffd0405f1ecbaa34252fe9e914157dd0..54b095030affca272ff83d2ef88862574c22a434 100644 (file)
@@ -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