diff --git a/README.md b/README.md index 50cce5a..31398a0 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,6 @@ ### Fixes -* [ ] check integrity of packages on a single line - ### Tests * [ ] pacman's need of .sig files for packages diff --git a/__main__.py b/__main__.py index 5a0f2a0..e390bc8 100755 --- a/__main__.py +++ b/__main__.py @@ -29,14 +29,16 @@ def check(): for package in subsystem.catalog.packages.values(): packages.append((subsystem, package)) for index, items in enumerate(packages): - print(index, '/', len(packages)) + print('\r', index, '/', len(packages), '←', 'checked', end='') subsystem, package = items path = os.path.join(subsystem.path, package.filename) with open(path, 'br') as f: hash = hashlib.sha256(f.read()).hexdigest() if hash != package.sha256sum: broken.append(package) - print(len(broken), '/', len(packages)) + print() + print('', str(len(broken)).rjust(len(str(len(packages)))), + '/', len(packages), '←', 'broken') def info():