Skip to content

Commit

Permalink
seems to be some difference in gzip -l output between my laptop and t…
Browse files Browse the repository at this point in the history
…ravis server - debugging
  • Loading branch information
jdidion committed Nov 19, 2017
1 parent 0dd4dbe commit 572d90e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xphyle/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,9 @@ def get_list_command(self, path: str) -> List[str]:
return [str(self.executable_path), '-l', path]

def parse_file_listing(self, listing: str) -> Tuple[int, int, float]:
print(listing)
parsed = re.split(' +', listing.splitlines(keepends=False)[1].strip())
print(parsed)
if self.executable_name != 'pigz':
parsed = parsed[5:8]
ratio = float(parsed[2][:-1]) / 100
Expand Down

0 comments on commit 572d90e

Please sign in to comment.