[gtk-mac-bundler: 1/4] bundler.py: Fix otool/gimp issue




commit 52be2b793950526cca55ce5a973570fa3803ec83
Author: Lukas Oberhuber <lukaso gmail com>
Date:   Sun Oct 10 22:11:47 2021 +0000

    bundler.py: Fix otool/gimp issue
    
    Copied from
    https://github.com/samm-git/gtk-mac-bundler  branch: fix-otool
    
    Ensures that otool does not error on directories and only receives
    files.

 bundler/bundler.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/bundler/bundler.py b/bundler/bundler.py
index dd7899a..deaa5b3 100644
--- a/bundler/bundler.py
+++ b/bundler/bundler.py
@@ -357,7 +357,8 @@ class Bundler(object):
                         dir, pattern = os.path.split(source)
                         for root, dirs, files in os.walk(dir):
                             for item in glob.glob(os.path.join(root, pattern)):
-                                binaries.append(os.path.join(root, item))
+                                if os.path.isfile(os.path.join(root, item)):
+                                    binaries.append(os.path.join(root, item))
                     elif os.path.isdir(source):
                         for root, dirs, files in os.walk(source):
                             for item in glob.glob(os.path.join(root, '*.so')):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]