mirror of
https://github.com/znc/znc.git
synced 2026-06-17 16:44:53 +02:00
CMakified znc-buildmod should also remove destination before writing new .so
To avoid crash of a running ZNC process.
This commit is contained in:
@@ -96,4 +96,8 @@ with tempfile.TemporaryDirectory() as cmdir:
|
||||
subprocess.check_call(['cmake', '--build', '.'], cwd=build)
|
||||
|
||||
for so in glob.iglob(os.path.join(build, '*.so')):
|
||||
try:
|
||||
os.remove(os.path.basename(so))
|
||||
except OSError:
|
||||
pass
|
||||
shutil.copy(so, os.getcwd())
|
||||
|
||||
Reference in New Issue
Block a user