INNER CODE UNIT · Python
div
DaemonEngine/Daemon · external_deps/cygtar.py:289
div = float(len(self.tar.getmembers())) / 50.0
dots = 0
cnt = 0
for m in self.tar:
if self.verbose:
cnt += 1
while float(dots) * div < float(cnt):
dots += 1
sys.stdout.write('.')
sys.stdout.flush()
# For symlinks in Windows we create Cygwin 1.7 style symlinks since the
# toolchain is Cygwin based. For hardlinks on Windows, we use mklink if
# possible to create a hardlink. For all other tar items, or platforms we
# go ahead and extract it normally.
if m.issym() and sys.platform == 'win32':
CreateCygwinSymlink(m.name, m.linkname)