From 9f9b1bca7796998d25ca802d4b5a73373cef1ec9 Mon Sep 17 00:00:00 2001 From: Jenny Wong Date: Fri, 31 Oct 2025 11:12:17 +0000 Subject: [PATCH] Only raise symlink failure error if target exists --- ecbundle/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecbundle/util.py b/ecbundle/util.py index 20b650d..26b9254 100644 --- a/ecbundle/util.py +++ b/ecbundle/util.py @@ -124,7 +124,7 @@ def symlink_force(target, link_name): os.remove(link_name) os.symlink(target_orig, link_name) - if not os.path.exists(link_name): + if os.path.exists(target_orig) and not os.path.exists(link_name): error( "ERROR: Failed to create valid link from {0} to {1}".format( link_name, target_orig