From bd7c126e3fb1b94e76e0e632c657cea854586844 Mon Sep 17 00:00:00 2001 From: Gábor Németh Date: Mon, 6 Mar 2023 16:19:14 +0100 Subject: 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 --- cmdline/apt.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmdline/apt.cc') 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 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}, -- cgit v1.2.3-70-g09d2