diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-25 08:30:19 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-25 08:30:19 -0700 |
commit | bb4bf67155698ef3650ebb8bb2713b7d1e41cd40 (patch) | |
tree | a8c04654b5e1e9a3cc597b1ee17c29126a33405b | |
parent | c3ee542d345213db39f4894195db43fa18bc446e (diff) | |
download | portage-bb4bf67155698ef3650ebb8bb2713b7d1e41cd40.tar.gz portage-bb4bf67155698ef3650ebb8bb2713b7d1e41cd40.tar.bz2 portage-bb4bf67155698ef3650ebb8bb2713b7d1e41cd40.zip |
In EbuildPhase, don't display Repository if the value is not available.
-rw-r--r-- | pym/_emerge/EbuildPhase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildPhase.py b/pym/_emerge/EbuildPhase.py index ec08fabf9..e3bc076c9 100644 --- a/pym/_emerge/EbuildPhase.py +++ b/pym/_emerge/EbuildPhase.py @@ -66,7 +66,8 @@ class EbuildPhase(CompositeTask): msg = [] msg.append("Package: %s" % self.settings.mycpv) - msg.append("Repository: %s" % self.settings['PORTAGE_REPO_NAME']) + if self.settings.get('PORTAGE_REPO_NAME'): + msg.append("Repository: %s" % self.settings['PORTAGE_REPO_NAME']) if maint_str: msg.append("Maintainer: %s" % maint_str) msg.append("USE: %s" % use) |