Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/15
20 lines
552 B
Diff
20 lines
552 B
Diff
--- conf.d/link_confs.py
|
|
+++ conf.d/link_confs.py
|
|
@@ -3,6 +3,7 @@
|
|
import os
|
|
import sys
|
|
import argparse
|
|
+import platform
|
|
|
|
if __name__=='__main__':
|
|
parser = argparse.ArgumentParser()
|
|
@@ -26,7 +27,7 @@ if __name__=='__main__':
|
|
break
|
|
except OSError as e:
|
|
# Symlink privileges are not available
|
|
- if len(e.args) == 1 and 'privilege' in e.args[0]:
|
|
+ if platform.system().lower() == 'windows' and e.winerror == 1314:
|
|
break
|
|
raise
|
|
except FileExistsError:
|