From: Zac Medico Date: Sat, 21 Jul 2007 04:57:08 +0000 (-0000) Subject: Just show [0] instead of [0=>0] in the repo display. X-Git-Tag: v2.2_pre1~979 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=536ac410b1dd029e3a5c819970352fa732223703;p=portage.git Just show [0] instead of [0=>0] in the repo display. svn path=/main/trunk/; revision=7332 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index c20fcfeb3..16face65c 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2953,9 +2953,12 @@ class depgraph(object): if repo_name_prev: repo_path_prev = portdb.getRepositoryPath( repo_name_prev) - repoadd = "%s=>%s" % ( - repo_display.repoStr(repo_path_prev), - repo_display.repoStr(repo_path_real)) + if repo_path_prev == repo_path_real: + repoadd = repo_display.repoStr(repo_path_real) + else: + repoadd = "%s=>%s" % ( + repo_display.repoStr(repo_path_prev), + repo_display.repoStr(repo_path_real)) if repoadd: verboseadd += teal("[%s]" % repoadd)