[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#872033: apt edit-sources: missing newline at the end of "file changed, please run 'apt-get update'."



Package: apt
Version: 1.5~beta1
Severity: minor
Tags: patch
Control: found -1 1.4.7


Dear maintainer,

after some changes in sources.list file, "apt edit-sources" sends to output
the message below:

  "Your '/etc/apt/sources.list' file changed, please run 'apt-get update'"

but a missing newline induces the shell prompt to appear on the same line.

 root:~#  apt edit-sources
 Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.root:~#

Please find attached a trivial patch to fix this issue.

Thanks for reading.
--- private-sources.cc	2017-08-13 18:16:53.105652765 +0200
+++ private-sources.cc-new	2017-08-13 18:16:57.965554388 +0200
@@ -100 +100 @@
-         std::cout, _("Your '%s' file changed, please run 'apt-get update'."),
+         std::cout, _("Your '%s' file changed, please run 'apt-get update'.\n"),

Reply to: