From 503c7d594125f963b92047ad2d9d0644f39136c7 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 22 Jul 2016 12:33:45 +0200 Subject: report warnings&errors consistently in edit-sources After editing the sources it is a good idea to (re)built the caches as they will be out-of-date and doing so helps in reporting higherlevel errors like duplicates sources.list entries, too, instead of just general parsing errors as before. --- apt-private/private-utils.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apt-private/private-utils.cc') diff --git a/apt-private/private-utils.cc b/apt-private/private-utils.cc index 34af83c08..775bf7e79 100644 --- a/apt-private/private-utils.cc +++ b/apt-private/private-utils.cc @@ -9,7 +9,7 @@ #include // DisplayFileInPager - Display File with pager /*{{{*/ -void DisplayFileInPager(std::string const &filename) +bool DisplayFileInPager(std::string const &filename) { pid_t Process = ExecFork(); if (Process == 0) @@ -39,11 +39,11 @@ void DisplayFileInPager(std::string const &filename) } // Wait for the subprocess - ExecWait(Process, "pager", false); + return ExecWait(Process, "pager", false); } /*}}}*/ // EditFileInSensibleEditor - Edit File with editor /*{{{*/ -void EditFileInSensibleEditor(std::string const &filename) +bool EditFileInSensibleEditor(std::string const &filename) { pid_t Process = ExecFork(); if (Process == 0) @@ -71,6 +71,6 @@ void EditFileInSensibleEditor(std::string const &filename) } // Wait for the subprocess - ExecWait(Process, "editor", false); + return ExecWait(Process, "editor", false); } /*}}}*/ -- cgit v1.2.3-70-g09d2