diff options
| author | Gábor Németh <homar@riseup.net> | 2023-03-06 16:19:14 +0100 |
|---|---|---|
| committer | Gábor Németh <homar@riseup.net> | 2023-11-22 11:05:28 +0100 |
| commit | bd7c126e3fb1b94e76e0e632c657cea854586844 (patch) | |
| tree | e7e5140d1857d155a187f6392cf458c0237f6858 /cmdline | |
| parent | 6ba6b29e37a7e7b867a88f1d74e7dcfd7f83c30e (diff) | |
Add 'dist-clean' command to remove packages and list files
We assume all files in the 'listsdir' are candidates. Keep only files
ending with Release, Release.gpg, and InRelease.
Closes: #959093
Diffstat (limited to 'cmdline')
| -rw-r--r-- | cmdline/apt.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdline/apt.cc b/cmdline/apt.cc index f53d4e446..ef58bcebf 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -89,6 +89,8 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ {"policy",&Policy, nullptr}, {"build-dep", &DoBuildDep,nullptr}, {"clean", &DoClean, nullptr}, + {"distclean", &DoDistClean, nullptr}, + {"dist-clean", &DoDistClean, nullptr}, {"autoclean", &DoAutoClean, nullptr}, {"auto-clean", &DoAutoClean, nullptr}, {"source", &DoSource, nullptr}, |
