]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-upgrade.cc
The entire concept of PendingError() is flawed :/.
[apt.git] / apt-private / private-upgrade.cc
index d13a6af49055a051e17e2e288c0a542ead575ac4..679140bfd3215c43c1430ed08b3e9e250361cb4b 100644 (file)
 static bool UpgradeHelper(CommandLine &CmdL, int UpgradeFlags)
 {
    CacheFile Cache;
+   std::vector<std::string> VolatileCmdL;
+   Cache.GetSourceList()->AddVolatileFiles(CmdL, &VolatileCmdL);
+
    if (Cache.OpenForInstall() == false || Cache.CheckDeps() == false)
       return false;
 
-   if(!DoCacheManipulationFromCommandLine(CmdL, Cache, UpgradeFlags))
+   if(!DoCacheManipulationFromCommandLine(CmdL, VolatileCmdL,  Cache, UpgradeFlags))
       return false;
 
    return InstallPackages(Cache,true);