]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-upgrade.cc
tests: add a webserverconfig method to abstract config
[apt.git] / apt-private / private-upgrade.cc
index df8fe868635dc013c2380936171883afb438055a..e76b5d7fc0efd6e29d255050db3db7108c51aa20 100644 (file)
@@ -1,5 +1,6 @@
 // Includes                                                            /*{{{*/
 #include <apt-pkg/algorithms.h>
+#include <apt-pkg/upgrade.h>
 #include <iostream>
 #include "private-install.h"
 #include "private-cachefile.h"
@@ -47,7 +48,7 @@ bool DoUpgradeNoNewPackages(CommandLine &CmdL)
    // Do the upgrade
    return UpgradeHelper(CmdL, 
                         APT::Upgrade::FORBID_REMOVE_PACKAGES|
-                        APT::Upgrade::FORBID_NEW_INSTALL_PACKAGES);
+                        APT::Upgrade::FORBID_INSTALL_NEW_PACKAGES);
 }
                                                                        /*}}}*/
 // DoSafeUpgrade - Upgrade all packages with install but not remove    /*{{{*/