def get_pkg_name(args, pkg_path):
 recipes_dir = args.recipes_dir
 input_dir = os.path.dirname(os.path.join(recipes_dir, pkg_path))
 recipe_meta = MetaData(input_dir)
 return recipe_meta.get_value('package/name')

def get_pkg_name ( args , pkg_path ) : recipes_dir = args . recipes_dir input_dir = os . path . dirname ( os . path . join ( recipes_dir , pkg_path ) ) recipe_meta = MetaData ( input_dir ) return recipe_meta . get_value ( 'package/name' )
extract the package name from a given meta .