mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report unknown-8bit too
This commit is contained in:
parent
d910c59d76
commit
1062a8d22e
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ class App(TestSuite):
|
|||
@test()
|
||||
def bad_encoding(self):
|
||||
|
||||
cmd = "file --mime-encoding $(find %s/ -type f) | grep 'iso-8859-1' || true" % self.path
|
||||
cmd = "file --mime-encoding $(find %s/ -type f) | grep 'iso-8859-1\|unknown-8bit' || true" % self.path
|
||||
bad_encoding_files = subprocess.check_output(cmd, shell=True).decode('utf-8').strip().split("\n")
|
||||
for file_ in bad_encoding_files:
|
||||
if not file_:
|
||||
|
|
Loading…
Reference in a new issue