Don't use "dir" for a variable name since it's also a builtin.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Aug 2008 19:03:03 +0000 (19:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Aug 2008 19:03:03 +0000 (19:03 -0000)
svn path=/main/trunk/; revision=11372

pym/portage/dbapi/vartree.py

index 6b71ad7aedcbc9a0edcf138466617d06498fcc4f..0355de6ba610945ca9eba03ee7c010cb98968f9a 100644 (file)
@@ -270,9 +270,9 @@ class LinkageMap(object):
                                # unnoticed.  As a result of these cases, check that a file with
                                # the same name as the soname exists in obj's runpath.
                                path = self._obj_properties[obj][2] + self._defpath
-                               for dir in path:
+                               for d in path:
                                        cachedSoname, cachedRealpath, cachedExists = \
-                                                       cache.get(os.path.join(dir, soname))
+                                                       cache.get(os.path.join(d, soname))
                                        # Check that the this library provides the needed soname.  Doing
                                        # this, however, will cause consumers of libraries missing
                                        # sonames to be unnecessarily emerged. (eg libmix.so)
@@ -280,13 +280,13 @@ class LinkageMap(object):
                                                validLibraries.add(cachedRealpath)
                                                if debug and cachedRealpath not in libraries:
                                                        print "Found provider outside of findProviders:", \
-                                                                       os.path.join(dir, soname), "->", cachedRealpath
+                                                                       os.path.join(d, soname), "->", cachedRealpath
                                                # A valid library has been found, so there is no need to
                                                # continue.
                                                break
                                        if debug and cachedRealpath in self._obj_properties:
                                                print "Broken symlink or missing/bad soname:", \
-                                                               os.path.join(dir, soname), '->', cachedRealpath, \
+                                                               os.path.join(d, soname), '->', cachedRealpath, \
                                                                "with soname", cachedSoname, "but expecting", soname
                                # This conditional checks if there are no libraries to satisfy the
                                # soname (empty set).