Benjamin Drung pushed to branch sid at GNU Libc Maintainers / tzdata


Commits:
68c36fd6 by Benjamin Drung at 2023-02-07T12:05:13+01:00
d/t/debconf: Fix removing broken symlink

If the path points to a symlink, `pathlib.Path.exists` returns whether
the symlink points to an existing file or directory. So `exists` will
return `False` for broken symlinks. The following `symlink_to` will fail
then.

So just try to remove the symlink and ignore `FileNotFoundError`.

Signed-off-by: Benjamin Drung <benjamin.dr...@canonical.com>

- - - - -


1 changed file:

- debian/tests/debconf


View it on GitLab: 
https://salsa.debian.org/glibc-team/tzdata/-/commit/68c36fd675080c6b7b952781ed928de6d3b2d252

-- 
View it on GitLab: 
https://salsa.debian.org/glibc-team/tzdata/-/commit/68c36fd675080c6b7b952781ed928de6d3b2d252
You're receiving this email because of your account on salsa.debian.org.


Reply via email to