Eliminate an unnecessary string concatenation.
authorZac Medico <zmedico@gentoo.org>
Tue, 17 Oct 2006 21:51:27 +0000 (21:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 17 Oct 2006 21:51:27 +0000 (21:51 -0000)
svn path=/main/trunk/; revision=4744

pym/portage.py

index c505073688605609b3a5fd4239328b93c8977b8a..aecbda2937b1e3c2690de38f048220db2b171fac 100644 (file)
@@ -1526,13 +1526,12 @@ class config:
                self.configdict["pkginternal"]["USE"] = pkginternaluse
                defaults = []
                for i in xrange(len(self.profiles)):
-                       profile_use = self.make_defaults_use[i]
+                       defaults.append(self.make_defaults_use[i])
                        cpdict = self.pkgprofileuse[i].get(cp, None)
                        if cpdict:
                                best_match = best_match_to_list(self.mycpv, cpdict.keys())
                                if best_match:
-                                       profile_use += " " + cpdict[best_match]
-                       defaults.append(profile_use)
+                                       defaults.append(cpdict[best_match])
                self.configdict["defaults"]["USE"] = " ".join(defaults)
                useforce = []
                for i in xrange(len(self.profiles)):