From 6e131d98b5b63d6d011db131e307813bc0d94331 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 27 Jun 2013 15:15:18 -0700 Subject: [PATCH] update check_rosdistro to check targets.yaml --- scripts/check_rosdistro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_rosdistro.py b/scripts/check_rosdistro.py index 392c42f198c66..9c2e1d0285723 100755 --- a/scripts/check_rosdistro.py +++ b/scripts/check_rosdistro.py @@ -148,7 +148,7 @@ def my_assert(val): print_err("could not build the dict: %s" % (str(e))) my_assert(False) - if 'release-name' not in ydict and not [d for d in ydict if 'fuerte' in d.keys()]: + if 'release-name' not in ydict and isinstance(ydict, dict) and 'fuerte' not in ydict.keys(): print_err("The file does not contain a 'release-name'. (Only files for Fuerte and older are supported by this script)") else: print_test("checking for trailing spaces...")