[reprotest] 02/04: - better error message
Ximin Luo
infinity0 at debian.org
Fri Nov 18 19:02:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository reprotest.
commit 7571993ce347c699f8f625eee5e1519c5cb92a41
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Nov 18 17:28:15 2016 +0100
- better error message
---
reprotest/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index 35a2ccd..e01e827 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -318,7 +318,7 @@ def build(script, source_root, dist_root, artifact_pattern, testbed, artifact_st
# remove any existing artifact, in case the build script doesn't overwrite
# it e.g. like how make(1) sometimes works.
if re.search(r"""(^| )['"]*/""", artifact_pattern):
- raise ValueError("artifact_pattern is possibly dangerous; refusing to continue")
+ raise ValueError("artifact_pattern is possibly dangerous; maybe use a relative path instead?")
testbed.check_exec(
['sh', '-ec', 'cd "%s" && rm -rf %s' %
(source_root, artifact_pattern)])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git
More information about the Reproducible-commits
mailing list