Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Zac Medico (zmedico)" <zmedico@g.o>
Subject: portage r11819 - main/trunk/pym/portage/dbapi
Date: Fri, 07 Nov 2008 16:23:36 +0000
Author: zmedico
Date: 2008-11-07 16:23:36 +0000 (Fri, 07 Nov 2008)
New Revision: 11819

Modified:
   main/trunk/pym/portage/dbapi/vartree.py
Log:
Combine redundant arch_map code inside LinkageMap.rebuild().


Modified: main/trunk/pym/portage/dbapi/vartree.py
===================================================================
--- main/trunk/pym/portage/dbapi/vartree.py	2008-11-07 16:09:59 UTC (rev 11818)
+++ main/trunk/pym/portage/dbapi/vartree.py	2008-11-07 16:23:36 UTC (rev 11819)
@@ -285,11 +285,11 @@
 				"${ORIGIN}", os.path.dirname(obj)).replace(
 				"$ORIGIN", os.path.dirname(obj)).split(":"))])
 			needed = filter(None, fields[4].split(","))
+			arch_map = libs.get(arch)
+			if arch_map is None:
+				arch_map = {}
+				libs[arch] = arch_map
 			if soname:
-				arch_map = libs.get(arch)
-				if arch_map is None:
-					arch_map = {}
-					libs[arch] = arch_map
 				soname_map = arch_map.get(soname)
 				if soname_map is None:
 					soname_map = self._soname_map_class(
@@ -297,10 +297,6 @@
 					arch_map[soname] = soname_map
 				soname_map.providers.add(obj_key)
 			for needed_soname in needed:
-				arch_map = libs.get(arch)
-				if arch_map is None:
-					arch_map = {}
-					libs[arch] = arch_map
 				soname_map = arch_map.get(needed_soname)
 				if soname_map is None:
 					soname_map = self._soname_map_class(



Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in lxde-base/lxde-meta: - New directory
Next by thread:
linux-patches r1372 - genpatches-2.6/trunk/2.6.27
Previous by date:
gentoo-x86 commit in lxde-base/lxde-meta: - New directory
Next by date:
gentoo-x86 commit in net-ftp/filezilla: ChangeLog filezilla-3.1.3.1.ebuild


Updated Jul 31, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.