[oe-commits] [openembedded-core] 03/04: sysroot-relativelinks: also consider links to dirs on the host

git at git.openembedded.org git at git.openembedded.org
Tue Mar 28 16:21:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit c5b522378fff13962a5187d9d09979866f805cb5
Author: Christopher Larson <chris_larson at mentor.com>
AuthorDate: Tue Mar 28 21:14:55 2017 +0500

    sysroot-relativelinks: also consider links to dirs on the host
    
    Dead symlinks, or symlinks to existing files will show up in 'files' of an
    os.walk, but symlinks to existing directories show up in 'dirs', so we need to
    consider both.
    
    As one example where this is an issue, the symlink from /usr/lib/ssl/certs was
    left pointing to /etc/ssl/certs rather than the relative path when the sdk was
    built on hosts where the latter exists.
    
    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/sysroot-relativelinks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/sysroot-relativelinks.py b/scripts/sysroot-relativelinks.py
index e44eba2..ffe2547 100755
--- a/scripts/sysroot-relativelinks.py
+++ b/scripts/sysroot-relativelinks.py
@@ -24,7 +24,7 @@ def handlelink(filep, subdir):
     os.symlink(os.path.relpath(topdir+link, subdir), filep)
 
 for subdir, dirs, files in os.walk(topdir):
-    for f in files:
+    for f in dirs + files:
         filep = os.path.join(subdir, f)
         if os.path.islink(filep):
             #print("Considering %s" % filep)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list