diff options
author | Michael Vogt <mvo@debian.org> | 2013-10-05 11:54:08 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-10-05 11:54:08 +0200 |
commit | 5ca0cf51194422fb0f094bbf5e61e9f5eb57f013 (patch) | |
tree | db5ab686a7adfcc2bcc0ca48a070d8ce87dacb69 /cmdline | |
parent | facea693b2078327b59502e663c238c50118e96a (diff) |
cleanup upgrade API some more (thanks for the feedback from David)
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 8a30ac38d..64c7506ae 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -342,32 +342,6 @@ bool DoMarkAuto(CommandLine &CmdL) return false; } /*}}}*/ -// DoDistUpgrade - Automatic smart upgrader /*{{{*/ -// --------------------------------------------------------------------- -/* Intelligent upgrader that will install and remove packages at will */ -bool DoDistUpgrade(CommandLine &CmdL) -{ - CacheFile Cache; - if (Cache.OpenForInstall() == false || Cache.CheckDeps() == false) - return false; - - c0out << _("Calculating upgrade... ") << flush; - if (pkgDistUpgrade(*Cache) == false) - { - c0out << _("Failed") << endl; - ShowBroken(c1out,Cache,false); - return false; - } - - // parse additional cmdline pkg manipulation switches - if(!DoCacheManipulationFromCommandLine(CmdL, Cache)) - return false; - - c0out << _("Done") << endl; - - return InstallPackages(Cache,true); -} - /*}}}*/ // DoDSelectUpgrade - Do an upgrade by following dselects selections /*{{{*/ // --------------------------------------------------------------------- /* Follows dselect's selections */ |