Przeglądaj źródła

install: If package already is the newest version, display version

Also do it unconditionally, as it does not hurt.

Closes: #315149
Julian Andres Klode 11 lat temu
rodzic
commit
3b9eaca8c6
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      apt-private/private-install.cc

+ 3 - 2
apt-private/private-install.cc

@@ -816,8 +816,9 @@ void TryToInstall::operator() (pkgCache::VerIterator const &Ver) {
 	    else
 	       Cache->GetDepCache()->SetReInstall(Pkg, true);
 	 } else
-	    ioprintf(c1out,_("%s is already the newest version.\n"),
-		  Pkg.FullName(true).c_str());
+	    // TRANSLATORS: First string is package name, second is version
+	    ioprintf(c1out,_("%s is already the newest version (%s).\n"),
+		  Pkg.FullName(true).c_str(), Pkg.CurrentVer().VerStr());
       }
 
       // Install it with autoinstalling enabled (if we not respect the minial