diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2024-01-03 13:53:09 +0000 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2024-01-03 13:53:09 +0000 |
| commit | c82f96210eb62c92d31ded7073f4cf5371cc9485 (patch) | |
| tree | b0ba92b152c2dae076a8f0d811af287084878a89 /cmdline | |
| parent | c555d8f1ae31d1f511bf811640423231b75a8e13 (diff) | |
Improve and test distclean implementation
The implementation as-is as various smaller/esoteric bugs and
inconsistencies like apt-get not supporting them, the option -s
being supported in code but not accepted on the command line,
the regex not escaping the dot before the file extension and
exposing more implementation details to public headers than we
actually need.
Also comes with a small test case to ensure it actually works.
References: bd7c126e3fb1b94e76e0e632c657cea854586844
Diffstat (limited to 'cmdline')
| -rw-r--r-- | cmdline/apt-get.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 95c4a85ab..d41e0f243 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -424,6 +424,8 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ {"clean", &DoClean, _("Erase downloaded archive files")}, {"autoclean", &DoAutoClean, _("Erase old downloaded archive files")}, {"auto-clean", &DoAutoClean, nullptr}, + {"distclean", &DoDistClean, nullptr}, + {"dist-clean", &DoDistClean, nullptr}, {"check", &DoCheck, _("Verify that there are no broken dependencies")}, {"source", &DoSource, _("Download source archives")}, {"download", &DoDownload, _("Download the binary package into the current directory")}, |
