diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-05-13 16:59:09 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-05-16 16:17:54 +0200 |
commit | fd78974020e23679e9e810cf01dc5c8f3012bb8a (patch) | |
tree | b855e65f5812ff359872295f4f1fe5e62e52e7c8 /apt-private/private-output.h | |
parent | 71203dbf00cbb259fb59e8daf0543a45394b6623 (diff) |
show globalerrors before asking for confirmation
Errors cause a kind of automatic no already, but warnings and notices
are only displayed at the end of the apt execution even through they
could effect the choice of saying yes/no to questions: E.g. if a
configuration (file) was ignored you wanted to have an effect or if an
external solver you used generated warnings suggesting that the solution
might be valid, but bogus non-the-less and similar things.
Note that this only moves those messages up to the question if the
answer is interactive – not if e.g. -y is used or no question is asked at
all so this has an effect only on interactive usage of apt(-get), not
script who might be parsing apt output.
Diffstat (limited to 'apt-private/private-output.h')
-rw-r--r-- | apt-private/private-output.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-private/private-output.h b/apt-private/private-output.h index 8e4b50ed1..bb9428d7f 100644 --- a/apt-private/private-output.h +++ b/apt-private/private-output.h @@ -101,8 +101,8 @@ bool ShowEssential(std::ostream &out,CacheFile &Cache); void Stats(std::ostream &out, pkgDepCache &Dep); // prompting -bool YnPrompt(bool Default=true); -bool AnalPrompt(const char *Text); +bool YnPrompt(char const * const Question, bool Default=true); +bool AnalPrompt(std::string const &Question, const char *Text); std::string PrettyFullName(pkgCache::PkgIterator const &Pkg); std::string CandidateVersion(pkgCacheFile * const Cache, pkgCache::PkgIterator const &Pkg); |