diff options
author | Michael Vogt <mvo@debian.org> | 2014-01-25 22:40:04 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-01-25 22:40:04 +0100 |
commit | 6fa5b7b71e5c8ec5d4bec7bec3ef311c4d9c826b (patch) | |
tree | a02ec2b10f30e713eedd3f7c63cc44051fb6c859 /apt-private/private-upgrade.cc | |
parent | 72af508bdbca55d0752aab3369faa1dc944a04e7 (diff) | |
parent | 9aef3908c892f9d9349d8bf8a5ceaeea313ba0fe (diff) |
Merge branch 'debian/sid' into ubuntu/master
Conflicts:
configure.ac
Diffstat (limited to 'apt-private/private-upgrade.cc')
-rw-r--r-- | apt-private/private-upgrade.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-private/private-upgrade.cc b/apt-private/private-upgrade.cc index e76b5d7fc..a97e6d25b 100644 --- a/apt-private/private-upgrade.cc +++ b/apt-private/private-upgrade.cc @@ -1,3 +1,4 @@ + // Includes /*{{{*/ #include <apt-pkg/algorithms.h> #include <apt-pkg/upgrade.h> @@ -39,6 +40,14 @@ bool DoDistUpgrade(CommandLine &CmdL) return UpgradeHelper(CmdL, 0); } /*}}}*/ +bool DoUpgrade(CommandLine &CmdL) /*{{{*/ +{ + if (_config->FindB("APT::Get::Upgrade-Allow-New", false) == true) + return DoUpgradeWithAllowNewPackages(CmdL); + else + return DoUpgradeNoNewPackages(CmdL); +} + /*}}}*/ // DoUpgradeNoNewPackages - Upgrade all packages /*{{{*/ // --------------------------------------------------------------------- /* Upgrade all packages without installing new packages or erasing old |