def get_affected_packages(args):
 recipes_dir = args.recipes_dir
 hours = args.diff_hours
 cmd = ('cd \'%s\' && git log --diff-filter=ACMRTUXB --name-only --pretty="" --since="%s hours ago" | grep -E \'^recipes/.*/meta.yaml\' | sort | uniq' % (recipes_dir, hours))
 pkg_list = check_output(cmd, shell=True)
 ret = list()
 for pkg in pkg_list.strip().split('\n'):
  if (pkg and os.path.exists(os.path.join(recipes_dir, pkg))):
   ret.append((get_pkg_name(args, pkg), get_tests(args, pkg)))
 return ret

def get_affected_packages ( args ) : recipes_dir = args . recipes_dir hours = args . diff_hours cmd = ( 'cd \'%s\' && git log --diff-filter=ACMRTUXB --name-only --pretty="" --since="%s hours ago" | grep -E \'^recipes/.*/meta.yaml\' | sort | uniq' % ( recipes_dir , hours ) ) pkg_list = check_output ( cmd , shell = True ) ret = list ( ) for pkg in pkg_list . strip ( ) . split ( '\n' ) : if ( pkg and os . path . exists ( os . path . join ( recipes_dir , pkg ) ) ) : ret . append ( ( get_pkg_name ( args , pkg ) , get_tests ( args , pkg ) ) ) return ret
return a list of all meta .