diff options
author | Tim Harder <radhermit@gmail.com> | 2016-07-22 17:16:16 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2016-07-22 17:16:16 -0400 |
commit | 9521889342897cb62e98056470523f094e4ecc59 (patch) | |
tree | 16fb701804f619f0d489e06c7715e8daf42cd44b | |
parent | ebuild/domain: fix multiple env file parsing for package.env (diff) | |
download | pkgcore-9521889342897cb62e98056470523f094e4ecc59.tar.gz pkgcore-9521889342897cb62e98056470523f094e4ecc59.tar.bz2 pkgcore-9521889342897cb62e98056470523f094e4ecc59.zip |
repository/prototype: add __str__ fallback for custom repos without aliases
-rw-r--r-- | pkgcore/repository/prototype.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgcore/repository/prototype.py b/pkgcore/repository/prototype.py index a2d62863..582d951f 100644 --- a/pkgcore/repository/prototype.py +++ b/pkgcore/repository/prototype.py @@ -483,7 +483,9 @@ class tree(object): return [(), ()] def __str__(self): - return self.aliases[0] + if self.aliases: + return self.aliases[0] + return repr(self) @property def aliases(self): |