Fix a “type” error that seems to be enforced by Python 3:
File "/src/python/python-delta-tar/deltatar/tarfile.py", line 220, in itn
s = bytes("%0*o" % (digits - 1, n), "ascii") + NUL
TypeError: %o format: an integer is required, not float
# A 0o200 byte indicates a positive number, a 0o377 byte a negative
# number.
if 0 <= n < 8 ** (digits - 1):
- s = bytes("%0*o" % (digits - 1, n), "ascii") + NUL
+ s = bytes("%0*o" % (digits - 1, int(n)), "ascii") + NUL
elif format == GNU_FORMAT and -256 ** (digits - 1) <= n < 256 ** (digits - 1):
if n >= 0:
s = bytearray([0o200])