fix bui-agent package build

parent 14c25fb0
Pipeline #1489 passed with stages
in 3 minutes and 20 seconds
......@@ -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))).decode('utf-8')
# print '{} -> {}'.format(decoy, real)
target = os.path.join('burpui_agent', re.sub(r'.*/burpui/', '', real.decode('utf-8')))
target = os.path.join('burpui_agent', re.sub(r'.*/burpui/', '', real))
dirname = os.path.dirname(target)
if not os.path.isdir(dirname):
# print 'mkdir {}'.format(dirname)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment