diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-10-12 15:57:53 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 18:04:01 +0100 |
commit | 14341a7ee1ca3dbcdcdbe10ad19b947ce23d972d (patch) | |
tree | ff8d00ce2347061a0ca8f28fc6ff55173c125abc /apt-private/private-upgrade.cc | |
parent | 64b66a46a7fc9e7070ee6a758013a6059fee691e (diff) |
support .deb files in upgrade operations as well
The main part is refactoring through to allow hiding the magic needed to
support .deb files in deeper layers of libapt so that frontends have
less exposure to Debian specific classes like debDebPkgFileIndex.
Diffstat (limited to 'apt-private/private-upgrade.cc')
-rw-r--r-- | apt-private/private-upgrade.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-private/private-upgrade.cc b/apt-private/private-upgrade.cc index d13a6af49..4e0197a3f 100644 --- a/apt-private/private-upgrade.cc +++ b/apt-private/private-upgrade.cc @@ -19,10 +19,13 @@ 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); |