diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-21 04:57:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-21 04:57:08 +0000 |
commit | 536ac410b1dd029e3a5c819970352fa732223703 (patch) | |
tree | 659f8dcd0d857f457aac02b97d1cbbbb1004ddf2 | |
parent | 48076613ea19a83142a6c8366a050fe5cee210b8 (diff) | |
download | portage-536ac410b1dd029e3a5c819970352fa732223703.tar.gz portage-536ac410b1dd029e3a5c819970352fa732223703.tar.bz2 portage-536ac410b1dd029e3a5c819970352fa732223703.zip |
Just show [0] instead of [0=>0] in the repo display.
svn path=/main/trunk/; revision=7332
-rw-r--r-- | pym/emerge/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
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) |