diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-20 18:49:38 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-22 17:24:42 +0300 |
commit | 25ab26cdc4c8b75c370cdd2b2685a222ba72b65a (patch) | |
tree | cbceb474327850d33329ce509225f6baa4c15503 | |
parent | 2157c661f9e465c82fe557c46b130c44ec0edac3 (diff) |
Fix logging of bad sha512.sum line not to include newline
-rwxr-xr-x | calm/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/package.py b/calm/package.py index 19a9870..10e69d2 100755 --- a/calm/package.py +++ b/calm/package.py @@ -227,7 +227,7 @@ def read_package(packages, basedir, dirpath, files, strict=False, remove=[], upl if match: sha512[match.group(2)] = match.group(1) else: - logging.warning("bad line '%s' in sha512.sum for package '%s'" % (l, p)) + logging.warning("bad line '%s' in sha512.sum for package '%s'" % (l.strip(), p)) # discard obsolete md5.sum if 'md5.sum' in files: |