fontconfig: Branch 'master'

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


 conf.d/ |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 615e2cb844a7eb266aa562071a26093ae3ec4d28
Author: Akira TAGOH <akira@xxxxxxxxx>
Date:   Tue Mar 2 19:29:08 2021 +0900

    Overwrite symlinks for config files
    In Makefile, we are trying to remove old symlinks first and then create a symlink.
    do the same thing in meson too.
    Also, the line of the exception handling for FileExistsError is meaningless
    as the above line is taking care of it instead and we shouldn't ignore it if
    os.remove and os.symlink doesn't work somehow.

diff --git a/conf.d/ b/conf.d/
index 5a78d8d..e195095 100644
--- a/conf.d/
+++ b/conf.d/
@@ -20,6 +20,10 @@ if __name__=='__main__':
     for link in args.links:
         src = os.path.join(args.availpath, link)
         dst = os.path.join(confpath, link)
+        try:
+            os.remove(dst)
+        except FileNotFoundError:
+            pass
             os.symlink(src, dst)
         except NotImplementedError:
@@ -30,5 +34,3 @@ if __name__=='__main__':
             if platform.system().lower() == 'windows' and e.winerror == 1314:
-        except FileExistsError:
-            pass
Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux