Skip to content

Commit

Permalink
Merge 6369bfe into 437b6a7
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTam committed Apr 15, 2020
2 parents 437b6a7 + 6369bfe commit 9a8aa5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deb_pkg_tools/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,13 @@ def inspect_package_contents(archive, cache=None):
fields = line.split(None, 5)
permissions = fields[0]
owner, group = fields[1].split('/')
size = int(fields[2])

try:
size = int(fields[2])
except ValueError:
# Device nodes show device ID info instead of size - set to zero
size = 0

modified = fields[3] + ' ' + fields[4]
pathname = re.sub('^./', '/', fields[5])
pathname, _, target = pathname.partition(' -> ')
Expand Down

0 comments on commit 9a8aa5c

Please sign in to comment.