Collapse whitespace in aux_get calls for remote binpkg metadata. See bug #141279.
authorZac Medico <zmedico@gentoo.org>
Fri, 21 Jul 2006 20:28:59 +0000 (20:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 21 Jul 2006 20:28:59 +0000 (20:28 -0000)
svn path=/main/trunk/; revision=3984

pym/portage.py

index 5e2e653764da88239afafdd5623f3d26ca78a291..fb5bf2c09b90a19199050680f84890746f41028a 100644 (file)
@@ -4073,10 +4073,8 @@ class bindbapi(fakedbapi):
                for x in wants:
                        if self.bintree and self.bintree.isremote(mycpv):
                                # We use the cache for remote packages
-                               if self.bintree.remotepkgs[tbz2name].has_key(x):
-                                       mylist.append(self.bintree.remotepkgs[tbz2name][x][:]) # [:] Copy String
-                               else:
-                                       mylist.append("")
+                               mylist.append(" ".join(
+                                       self.bintree.remotepkgs[tbz2name].get(x,"").split()))
                        else:
                                myval = tbz2.getfile(x)
                                if myval is None: