fix package builds

This commit is contained in:
ziirish 2018-10-31 22:18:33 +01:00
parent 2456227d9f
commit 14c25fb01e
No known key found for this signature in database
GPG key ID: 72DB229A64B54E46
2 changed files with 3 additions and 2 deletions

View file

@ -48,9 +48,9 @@ if 'sdist' in sys.argv or 'bdist' in sys.argv:
find = subprocess.Popen(r'find burpui_agent-decoy -type l', shell=True, stdout=subprocess.PIPE)
(out, _) = find.communicate()
for decoy in out.splitlines():
real = os.path.normpath(os.path.join(os.path.dirname(decoy),os.readlink(decoy)))
real = os.path.normpath(os.path.join(os.path.dirname(decoy), os.readlink(decoy)))
# print '{} -> {}'.format(decoy, real)
target = os.path.join('burpui_agent', re.sub(r'.*/burpui/', '', real))
target = os.path.join('burpui_agent', re.sub(r'.*/burpui/', '', real.decode('utf-8')))
dirname = os.path.dirname(target)
if not os.path.isdir(dirname):
# print 'mkdir {}'.format(dirname)