Debian Codegraph @

debian/patches/0001-build.py-Do-not-fail-when-cleaned-file-do-not-exist.patch

raw symbols SCIP
1 Fromscip-debian debian fonts-dotgothic16 1.101-1 fonts-dotgothic16/patches/`0001-build.py-Do-not-fail-when-cleaned-file-do-not-exist.patch`#From.: Boyuan Yang <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian fonts-dotgothic16 1.101-1 fonts-dotgothic16/patches/`0001-build.py-Do-not-fail-when-cleaned-file-do-not-exist.patch`#Date.: Mon, 11 Nov 2024 11:15:26 -0500
3 Subjectscip-debian debian fonts-dotgothic16 1.101-1 fonts-dotgothic16/patches/`0001-build.py-Do-not-fail-when-cleaned-file-do-not-exist.patch`#Subject.: build.py: Do not fail when cleaned file do not exist
4
5 Bug-Debian: https://bugs.debian.org/1087300
6 ---
7 build.py | 15 ++++++++++++---
8 1 file changed, 12 insertions(+), 3 deletions(-)
9
10 diff --git a/build.pyscip-debian debian fonts-dotgothic16 1.101-1 fonts-dotgothic16/upstream/`build.py`: b/build.pyscip-debian debian fonts-dotgothic16 1.101-1 fonts-dotgothic16/upstream/`build.py`:
11 index 80950c5..58bef4a 100644
12 --- a/build.py
13 +++ b/build.py
14 @@ -36,9 +36,18 @@ for font in Path("master_ttf").glob("*.ttf"):
15 GASP_set(modifiedFont)
16 modifiedFont.save("fonts/ttf/"+str(font).split("/")[1])
17
18 -shutil.rmtree("instance_ufo")
19 -shutil.rmtree("master_ufo")
20 -shutil.rmtree("master_ttf")
21 +try:
22 + shutil.rmtree("instance_ufo")
23 +except Exception as e:
24 + print(e)
25 +try:
26 + shutil.rmtree("master_ufo")
27 +except Exception as e:
28 + print(e)
29 +try:
30 + shutil.rmtree("master_ttf")
31 +except Exception as e:
32 + print(e)
33
34 try:
35 if sys.argv[1] == "--autohinting":