diff options
author | Michael Vogt <egon@bottom> | 2007-06-08 22:33:05 +0200 |
---|---|---|
committer | Michael Vogt <egon@bottom> | 2007-06-08 22:33:05 +0200 |
commit | 41cd4f9af1dd8247f9ff4f1fe6053246657a1faf (patch) | |
tree | 3047cb0b6192adc566867d7af63d00e92341e6f1 /cmdline | |
parent | 7a1445aaa4de0e33ad3d7d08988f9f095442c94a (diff) | |
parent | e47c7d16435822f40149cd831ff6ba0a143ded85 (diff) | |
download | apt-41cd4f9af1dd8247f9ff4f1fe6053246657a1faf.tar.gz |
* fix error in AutocleanInterval, closes: #319339
(thanks to Israel G. Lugo for the patch)
* add "purge" commandline argument, closes: #133421)
(thanks to Julien Danjou for the patch)
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index aa6a70ffe..74824b6b0 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1569,12 +1569,16 @@ bool DoInstall(CommandLine &CmdL) bool DefRemove = false; if (strcasecmp(CmdL.FileList[0],"remove") == 0) DefRemove = true; + else if (strcasecmp(CmdL.FileList[0], "purge") == 0) + { + _config->Set("APT::Get::Purge", true); + DefRemove = true; + } else if (strcasecmp(CmdL.FileList[0], "autoremove") == 0) { _config->Set("APT::Get::AutomaticRemove", "true"); DefRemove = true; } - // new scope for the ActionGroup { pkgDepCache::ActionGroup group(Cache); @@ -2620,6 +2624,7 @@ bool ShowHelp(CommandLine &CmdL) " upgrade - Perform an upgrade\n" " install - Install new packages (pkg is libc6 not libc6.deb)\n" " remove - Remove packages\n" + " purge - Remove and purge packages\n" " source - Download source archives\n" " build-dep - Configure build-dependencies for source packages\n" " dist-upgrade - Distribution upgrade, see apt-get(8)\n" |