aboutsummaryrefslogtreecommitdiff
path: root/layman
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-08-27 13:36:22 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-08-27 13:36:22 -0400
commitbd5d65f3a1c6030fa63f6f3972a67f688d015cbc (patch)
tree0dc5cb65a88a91fd5e2f85130c7e9939d3a64a90 /layman
parentAdds remove parameter to database write() function (diff)
downloadlayman-bd5d65f3a1c6030fa63f6f3972a67f688d015cbc.tar.gz
layman-bd5d65f3a1c6030fa63f6f3972a67f688d015cbc.tar.bz2
layman-bd5d65f3a1c6030fa63f6f3972a67f688d015cbc.zip
overlay.py: Improves to_json() setting of descriptions
Diffstat (limited to 'layman')
-rwxr-xr-xlayman/overlays/overlay.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
index 31fe400..defa4e3 100755
--- a/layman/overlays/overlay.py
+++ b/layman/overlays/overlay.py
@@ -661,9 +661,7 @@ class Overlay(object):
if self.license != None:
repo['@license'] = self.license
repo['name'] = self.name
- repo['description'] = []
- for i in self.descriptions:
- repo['description'].append(i)
+ repo['description'] = [i for i in self.descriptions]
if self.homepage != None:
repo['homepage'] = self.homepage
if self.irc != None: