summaryrefslogtreecommitdiff
path: root/src/gtk
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-06-20 17:22:11 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-06-20 17:22:11 +0800
commit2f544c3c351591f0f30e9f3bdf2cc905f54b906a (patch)
tree730dba9d73ae88b95e487d6d52e33c384bf7e4b3 /src/gtk
parenta88745bf22c3e83e5d78331a69f813e451c895a0 (diff)
downloadaptitude-2f544c3c351591f0f30e9f3bdf2cc905f54b906a.tar.gz
Do not do FixMissing automatically for command-line actions
When a package is not available or fails to download incorrectly aptitude would try to continue without it. This made it hard to detect errors automatically using the exit status. This behaviour is no longer the default, instead if there are missing packages an error will be displayed and the program exit with failure (100). If the user wishes to continue anyway, they can use --fix-missing or configure Aptitude::CmdLine::Fix-Missing in apt.conf. * [cmdline]: An install run will no longer proceed if any package was unavailable or failed to download correctly, instead an error will be shown and exit with non-zero status (100). (Closes: #121313, #302784) The old behaviour can be obtained with the new --fix-missing option or setting Aptitude::CmdLine::Fix-Missing. Closes: #121313 Closes: #302784
Diffstat (limited to 'src/gtk')
-rw-r--r--src/gtk/gui.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtk/gui.cc b/src/gtk/gui.cc
index d44a8499..b1715bb5 100644
--- a/src/gtk/gui.cc
+++ b/src/gtk/gui.cc
@@ -956,6 +956,7 @@ namespace gui
boost::shared_ptr<download_install_manager> m =
boost::make_shared<download_install_manager>(false,
+ true,
sigc::ptr_fun(&gui_run_dpkg));
start_download(m,