summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorGábor Németh <homar@riseup.net>2023-03-06 16:19:14 +0100
committerGábor Németh <homar@riseup.net>2023-11-22 11:05:28 +0100
commitbd7c126e3fb1b94e76e0e632c657cea854586844 (patch)
treee7e5140d1857d155a187f6392cf458c0237f6858 /cmdline
parent6ba6b29e37a7e7b867a88f1d74e7dcfd7f83c30e (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.cc2
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},