diff options
author | Julian Andres Klode <jak@debian.org> | 2019-01-27 09:20:24 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2019-01-27 09:20:24 +0000 |
commit | fb700bfa9e1850ca3379c69db0b73435bcd48fea (patch) | |
tree | ea115e22ccc8ba68b83e5f86d3e90915b80943c9 /apt-private/private-install.cc | |
parent | 4200469bb5a14c4659285917ed30c46a0b15c286 (diff) | |
parent | 0eceebbdfdc2c5e1d677bff95a9ac1ef2f728337 (diff) |
Merge branch 'apt-reinstall' into 'master'
Add a "reinstall" command as an alias for "install --reinstall".
See merge request apt-team/apt!46
Diffstat (limited to 'apt-private/private-install.cc')
-rw-r--r-- | apt-private/private-install.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index 1713ff308..243b75b1c 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -586,7 +586,9 @@ bool DoCacheManipulationFromCommandLine(CommandLine &CmdL, std::vector<PseudoPkg Fix.reset(new pkgProblemResolver(Cache)); unsigned short fallback = MOD_INSTALL; - if (strcasecmp(CmdL.FileList[0],"remove") == 0) + if (strcasecmp(CmdL.FileList[0], "reinstall") == 0) + _config->Set("APT::Get::ReInstall", "true"); + else if (strcasecmp(CmdL.FileList[0],"remove") == 0) fallback = MOD_REMOVE; else if (strcasecmp(CmdL.FileList[0], "purge") == 0) { |