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

Bug#854334: apt: Please add a common prefix to the "X is maintained in the Y version control system" messages



Source: apt
Version: 1.4~beta4
Severity: wishlis
Tags: patch

Hi,

I think it would look nicer and be more readable if the "X is maintained
in the Y" messages had a common line prefix.

For example:

  NOTICE: 'apt' packaging is maintained in the 'Git' version control system at:
  https://anonscm.debian.org/git/apt/apt.git
  Please use:
  git clone https://anonscm.debian.org/git/apt/apt.git
  to retrieve the latest (possibly unreleased) updates to the package.

.. would look like:

  I: 'apt' packaging is maintained in the 'Git' version control system at:
  I: https://anonscm.debian.org/git/apt/apt.git
  I: Please use:
  I: git clone https://anonscm.debian.org/git/apt/apt.git
  I: to retrieve the latest (possibly unreleased) updates to the package.

This would separate it better from the rest of the status messages.

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
diff --git a/apt-private/private-source.cc b/apt-private/private-source.cc
index 96344d7..ae6c943 100644
--- a/apt-private/private-source.cc
+++ b/apt-private/private-source.cc
@@ -370,9 +370,9 @@ bool DoSource(CommandLine &CmdL)
 	 pos += vcs.length()+2;
 	 std::string::size_type epos = srec.find("\n", pos);
 	 std::string const uri = srec.substr(pos,epos-pos);
-	 ioprintf(c1out, _("NOTICE: '%s' packaging is maintained in "
+	 ioprintf(c1out, _("I: '%s' packaging is maintained in "
 		  "the '%s' version control system at:\n"
-		  "%s\n"),
+		  "I: %s\n"),
 	       Src.c_str(), vcs.c_str(), uri.c_str());
 	 std::string vcscmd;
 	 if (vcs == "Bzr")
@@ -381,8 +381,8 @@ bool DoSource(CommandLine &CmdL)
 	    vcscmd = "git clone " + uri;
 
 	 if (vcscmd.empty() == false)
-	    ioprintf(c1out,_("Please use:\n%s\n"
-		     "to retrieve the latest (possibly unreleased) "
+	    ioprintf(c1out,_("I: Please use:\nI: %s\n"
+		     "I: to retrieve the latest (possibly unreleased) "
 		     "updates to the package.\n"),
 		  vcscmd.c_str());
 	 break;

Reply to: