]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-upgrade.cc
get sources for packages in multiple releases again
[apt.git] / apt-private / private-upgrade.cc
index d13a6af49055a051e17e2e288c0a542ead575ac4..4e0197a3f08464811b4886207b0fbf088729db60 100644 (file)
 static bool UpgradeHelper(CommandLine &CmdL, int UpgradeFlags)
 {
    CacheFile Cache;
+   std::vector<char const *> 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);