mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
TOOLS/docutils-wrapper: handle commands without depfile
This commit is contained in:
parent
375e527620
commit
707554324a
@ -56,10 +56,12 @@ for opt, optarg in zip(argv, argv[1:]):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
proc = subprocess.run(argv, check=True)
|
proc = subprocess.run(argv, check=True)
|
||||||
convert_depfile(output, depfile)
|
if depfile is not None:
|
||||||
|
convert_depfile(output, depfile)
|
||||||
except:
|
except:
|
||||||
remove(output)
|
remove(output)
|
||||||
remove(depfile)
|
if depfile is not None:
|
||||||
|
remove(depfile)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
sys.exit(proc.returncode)
|
sys.exit(proc.returncode)
|
||||||
|
Loading…
Reference in New Issue
Block a user