X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=commands%2Fclean.py;h=9d7b05b0e402af61933ed18a28bf70b645a8c99a;hb=981fd24a20e3158c625ac025d5b3687e375e9ff2;hp=03b934291fe3533b84b52e264358ab7a83937bf4;hpb=962bd45184bfc8cd96a021d1268ac1c135bcf61f;p=tools%2Fsat.git diff --git a/commands/clean.py b/commands/clean.py index 03b9342..9d7b05b 100644 --- a/commands/clean.py +++ b/commands/clean.py @@ -32,7 +32,7 @@ parser = src.options.Options() parser.add_option('p', 'products', 'list2', 'products', _('products to clean. This option can be' ' passed several time to clean several products.')) -parser.add_option('s', 'source', 'boolean', 'source', +parser.add_option('s', 'sources', 'boolean', 'sources', _("Clean the product source directories.")) parser.add_option('b', 'build', 'boolean', 'build', _("Clean the product build directories.")) @@ -160,7 +160,7 @@ def run(args, runner, logger): if options.build: l_dir_to_suppress += get_build_directories(products_infos) - if options.source or options.sources_without_dev: + if options.sources or options.sources_without_dev: l_dir_to_suppress += get_source_directories(products_infos, options.sources_without_dev) @@ -175,7 +175,7 @@ def run(args, runner, logger): logger.write(" %s\n" % directory, 1) rep = input(_("Are you sure you want to continue? [Yes/No] ")) if rep.upper() != _("YES"): - return + return 0 # Suppress the list of paths suppress_directories(l_dir_to_suppress, logger)