]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-internal-solver.cc
add and use 'apt-key verify' which prefers gpgv over gpg
[apt.git] / cmdline / apt-internal-solver.cc
index c24a96cdfa2d87152287e8c2c7ef30d15befba70..0f2ec6283d04a268e2bcc69189b30e6fe3634a98 100644 (file)
@@ -175,10 +175,10 @@ int main(int argc,const char *argv[])                                     /*{{{*/
 
        std::string failure;
        if (upgrade == true) {
-               if (pkgAllUpgrade(CacheFile) == false)
+               if (APT::Upgrade::Upgrade(CacheFile, APT::Upgrade::FORBID_REMOVE_PACKAGES | APT::Upgrade::FORBID_INSTALL_NEW_PACKAGES) == false)
                        failure = "ERR_UNSOLVABLE_UPGRADE";
        } else if (distUpgrade == true) {
-               if (pkgDistUpgrade(CacheFile) == false)
+               if (APT::Upgrade::Upgrade(CacheFile, APT::Upgrade::ALLOW_EVERYTHING) == false)
                        failure = "ERR_UNSOLVABLE_DIST_UPGRADE";
        } else if (Fix.Resolve() == false)
                failure = "ERR_UNSOLVABLE";