summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/_desktop_entry.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-10-28 12:25:58 -0700
committerZac Medico <zmedico@gentoo.org>2012-10-28 12:25:58 -0700
commitad24e372f5059dc1d6688e0fd01fb4fdb38f2908 (patch)
treeb8c0dec350976f340a1f76838d509e42852534a2 /pym/portage/util/_desktop_entry.py
parent5a07c8e08793d35e2d9d67836ea022136bb6830e (diff)
downloadportage-ad24e372f5059dc1d6688e0fd01fb4fdb38f2908.tar.gz
portage-ad24e372f5059dc1d6688e0fd01fb4fdb38f2908.tar.bz2
portage-ad24e372f5059dc1d6688e0fd01fb4fdb38f2908.zip
validate_desktop_entry: handle df-utils-0.21 hint
Diffstat (limited to 'pym/portage/util/_desktop_entry.py')
-rw-r--r--pym/portage/util/_desktop_entry.py4
1 files changed, 3 insertions, 1 deletions
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