Rename command clean to clean-tmp

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2019-01-22 21:00:39 +01:00
parent 8ab15075a4
commit 69236018a8
4 changed files with 8 additions and 8 deletions

View file

@ -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:

View file

@ -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.

View file

@ -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]

View file

@ -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,