[gtk-mac-bundler: 1/2] binary: copy recursive preserves dir struct

commit 75712e00a3be9f74e53a9be809645a00a2e3c6d3
Author: Lukas Oberhuber <lukaso gmail com>
Date:   Mon Dec 27 11:26:38 2021 +0000

    binary: copy recursive preserves dir struct
    This change means that binary recursive copies preserve the directory
    structure rather than flattening it out. This is critical for using
    this capability in gimp where plugins have moved into sub directories.

 bundler/project.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bundler/project.py b/bundler/project.py
index 3da333e..d2ea0b5 100644
--- a/bundler/project.py
+++ b/bundler/project.py
@@ -117,7 +117,8 @@ class Path(object):
             for globbed_source in glob_list:
-                self.copy_file(project, globbed_source, destdir)
+                if os.path.isfile(globbed_source):
+                    self.copy_file(project, globbed_source, destdir)
     def copy_target_recursive(self, project, source, dest):
         for root, dirs, files in os.walk(source):

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