aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-11-01 07:05:10 (GMT)
committerBrian Dolbec <dolsen@gentoo.org>2012-11-01 07:05:10 (GMT)
commit599442ca69c94f236132443ce8a5c24fa05fcdc1 (patch)
tree2ff2b16ce5ab10ba813664468e44754ae90e5821
parentfix a bug in layman-updater to use MakeConf class to create a proper make.con... (diff)
downloadlayman-599442ca69c94f236132443ce8a5c24fa05fcdc1.zip
layman-599442ca69c94f236132443ce8a5c24fa05fcdc1.tar.gz
layman-599442ca69c94f236132443ce8a5c24fa05fcdc1.tar.bz2
fix bug 440628 truncated overlay names.
-rwxr-xr-xlayman/overlays/overlay.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
index 8eb0870..f2cfc92 100755
--- a/layman/overlays/overlay.py
+++ b/layman/overlays/overlay.py
@@ -516,7 +516,11 @@ class Overlay(object):
>>> print a.short_list(80)
wrobel [Subversion] (https://o.g.o/svn/dev/wrobel )
'''
- name = pad(self.name, 25)
+ if len(self.name) > 25:
+ name = self.name + " ###\n"
+ name += pad(" ", 25)
+ else:
+ name = pad(self.name, 25)
if len(set(e.type for e in self.sources)) == 1:
_type = self.sources[0].type