Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/overlays/
Date: Fri, 28 Aug 2015 00:41:07
Message-Id: 1440696982.bd5d65f3a1c6030fa63f6f3972a67f688d015cbc.twitch153@gentoo
1 commit: bd5d65f3a1c6030fa63f6f3972a67f688d015cbc
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 17:36:22 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 17:36:22 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=bd5d65f3
7
8 overlay.py: Improves to_json() setting of descriptions
9
10 layman/overlays/overlay.py | 4 +---
11 1 file changed, 1 insertion(+), 3 deletions(-)
12
13 diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
14 index 31fe400..defa4e3 100755
15 --- a/layman/overlays/overlay.py
16 +++ b/layman/overlays/overlay.py
17 @@ -661,9 +661,7 @@ class Overlay(object):
18 if self.license != None:
19 repo['@license'] = self.license
20 repo['name'] = self.name
21 - repo['description'] = []
22 - for i in self.descriptions:
23 - repo['description'].append(i)
24 + repo['description'] = [i for i in self.descriptions]
25 if self.homepage != None:
26 repo['homepage'] = self.homepage
27 if self.irc != None: