From 3befa248a225a2d19f4002d48329da85512a6f27 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Wed, 24 Mar 2021 14:16:07 -0400
Subject: [PATCH] install(win32): continue if a ringtone can't be copied

Errors copying symlinks may occur when the project is cloned using
certain WSL versions.

Change-Id: I92f698d01edd6a94c3dff9bce39441b4df98eec2
---
 copy-runtime-files.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/copy-runtime-files.py b/copy-runtime-files.py
index 8e31b1a29..a75dc7409 100644
--- a/copy-runtime-files.py
+++ b/copy-runtime-files.py
@@ -176,7 +176,10 @@ def copy_ringtones():
         for file in files:
             print(bcolors.OKBLUE + "Copying ringtone: " +
                   file + " -> " + copy_to_path + bcolors.ENDC)
-            shutil.copy(ringtone_path + os.sep + file, copy_to_path)
+            try:
+                shutil.copy(ringtone_path + os.sep + file, copy_to_path)
+            except:
+                print(bcolors.FAIL + "Unable to copy file." + bcolors.ENDC)
 
 
 def compile_and_copy_web_resources():
-- 
GitLab