# check that the command has been called with an application
src.check_config_has_application( runner.cfg )
# check that the command has been called with an application
src.check_config_has_application( runner.cfg )
products_infos = prepare.get_products_list(options, runner.cfg, logger)
# Construct the list of directories to suppress
l_dir_to_suppress = []
if options.all:
l_dir_to_suppress += (get_source_directories(products_infos,
products_infos = prepare.get_products_list(options, runner.cfg, logger)
# Construct the list of directories to suppress
l_dir_to_suppress = []
if options.all:
l_dir_to_suppress += (get_source_directories(products_infos,
l_dir_to_suppress += get_source_directories(products_infos,
options.sources_without_dev)
l_dir_to_suppress += get_source_directories(products_infos,
options.sources_without_dev)
# Check with the user if he really wants to suppress the directories
if not runner.options.batch:
logger.write(_("Remove the following directories ?\n"), 1)
# Check with the user if he really wants to suppress the directories
if not runner.options.batch:
logger.write(_("Remove the following directories ?\n"), 1)
# Suppress the list of paths
suppress_directories(l_dir_to_suppress, logger)
# Suppress the list of paths
suppress_directories(l_dir_to_suppress, logger)