Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11580 - main/branches/prefix/pym/portage/dbapi
Date: Sun, 28 Sep 2008 14:53:39
Message-Id: E1KjxeS-0007MC-Ay@stork.gentoo.org
1 Author: grobian
2 Date: 2008-09-28 14:53:35 +0000 (Sun, 28 Sep 2008)
3 New Revision: 11580
4
5 Modified:
6 main/branches/prefix/pym/portage/dbapi/vartree.py
7 Log:
8 I seem not to understand correctly how weird Python is, fix AttributeError: 'list' object has no attribute 'strip' error.
9
10 Modified: main/branches/prefix/pym/portage/dbapi/vartree.py
11 ===================================================================
12 --- main/branches/prefix/pym/portage/dbapi/vartree.py 2008-09-28 12:13:55 UTC (rev 11579)
13 +++ main/branches/prefix/pym/portage/dbapi/vartree.py 2008-09-28 14:53:35 UTC (rev 11580)
14 @@ -679,7 +679,7 @@
15 for items in self._dbapi.plib_registry.getPreservedLibs().values():
16 args += [x.lstrip(".") for x in items]
17 proc = subprocess.Popen(args, stdout=subprocess.PIPE)
18 - output = [proc.communicate()[0].split("\n")]
19 + output = [l for l in proc.communicate()[0].split("\n")]
20 lines += output
21
22 for l in lines: