diff --git a/ChangeLog.txt b/ChangeLog.txt index e3f92fc0..75b0008f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -6,7 +6,7 @@ Updated: Fixed: - Bugfix: update slpkg itself from gitlab repository Added: -- Command clean to remove the packages and the sources from /tmp/slpkg/ directory +- Command 'clean-tmp' to remove the packages and the sources from /tmp/slpkg/ directory 3.3.9 - 14/01/2019 Updated: diff --git a/man/slpkg.8 b/man/slpkg.8 index 8e3f3870..e7c0e8ba 100644 --- a/man/slpkg.8 +++ b/man/slpkg.8 @@ -153,8 +153,8 @@ Additional options: This command searches for .new configuration files in /etc/ path and ask the user what todo with those files. -.SS clean, the tmp/ directory -\fBslpkg\fP \fBclean\fP +.SS clean-tmp, the tmp/ directory +\fBslpkg\fP \fBclean-tmp\fP .PP Clean the /tmp/slpkg/ directory from downloaded packages and sources. diff --git a/slpkg/arguments.py b/slpkg/arguments.py index eb260fab..6efb116b 100644 --- a/slpkg/arguments.py +++ b/slpkg/arguments.py @@ -78,7 +78,7 @@ Commands: new-config Manage .new configuration files. - clean Clean the tmp/ directory from + clean-tmp Clean the tmp/ directory from downloaded packages and sources. Optional arguments: -h | --help Print this help message and exit. @@ -186,7 +186,7 @@ def usage(repo): [health, --silent] [deps-status, --tree, --graph=[type]] [new-config] - [clean] + [clean-tmp] Optional arguments: [-h] [-v] diff --git a/slpkg/main.py b/slpkg/main.py index f5637cb6..b9bdfa7b 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -241,9 +241,9 @@ class ArgParse(object): else: usage("") - def command_clean(self): + def command_clean_tmp(self): """Clean all downloaded packages and sources""" - if len(self.args) == 1 and self.args[0] == "clean": + if len(self.args) == 1 and self.args[0] == "clean-tmp": clean_tmp() else: usage("") @@ -815,7 +815,7 @@ def main(): "health": argparse.command_health, "deps-status": argparse.command_deps_status, "new-config": argparse.command_new_config, - "clean": argparse.command_clean, + "clean-tmp": argparse.command_clean_tmp, "-a": argparse.auto_build, "--autobuild": argparse.auto_build, "-l": argparse.pkg_list,