From a702deedae946b9d506fe93bc823b73ca0055863 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 17 Apr 2013 09:14:38 +0200 Subject: [PATCH] deps: 'none' should only be displayed if no other elements --- mopidy/utils/deps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/utils/deps.py b/mopidy/utils/deps.py index 742536a5..8ed91c21 100644 --- a/mopidy/utils/deps.py +++ b/mopidy/utils/deps.py @@ -119,12 +119,12 @@ def gstreamer_info(): other.append(' Found:') for element in found_elements: other.append(' %s' % element) - else: + if not found_elements: other.append(' none') other.append(' Not found:') for element in missing_elements: other.append(' %s' % element) - else: + if not missing_elements: other.append(' none') return {