[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: json.py: fix logging
Mattia Rizzolo
mattia at debian.org
Fri Apr 6 23:02:54 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit d94921d5173efbe32807c5af959e2b2c2d4d1c59
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Apr 7 01:02:15 2018 +0200
reproducible debian: json.py: fix logging
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_json.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_json.py b/bin/reproducible_json.py
index b8bd286..ed5d105 100755
--- a/bin/reproducible_json.py
+++ b/bin/reproducible_json.py
@@ -116,7 +116,7 @@ for data, target in (
json.dump(data, fd, indent=4, sort_keys=True)
os.rename(tmpfile, target)
os.chmod(target, 0o644)
- log.info("%s/%s has been updated.", DEBIAN_URL, os.path.dirname(target))
+ log.info("%s/%s has been updated.", DEBIAN_URL, os.path.basename(target))
# Write compressed version
compressed = '{}.bz2'.format(target)
@@ -125,4 +125,4 @@ for data, target in (
subprocess.check_call(('bzip2', '-9c', target), stdout=fd)
os.rename(tmpfile, compressed)
os.chmod(compressed, 0o644)
- log.info("%s/%s has been updated.", DEBIAN_URL, os.path.dirname(compressed))
+ log.info("%s/%s has been updated.", DEBIAN_URL, os.path.basename(compressed))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list