[reprotest] 01/01: make multi-component artifact patterns like '*.deb *.changes' work correctly

Ximin Luo infinity0 at debian.org
Thu Sep 22 18:04:33 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 225b0e05b277f947bc71032937d1d17b3b552e34
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Sep 22 20:04:13 2016 +0200

    make multi-component artifact patterns like '*.deb *.changes' work correctly
---
 reprotest/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index beb471a..3ebaeb4 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -7,6 +7,7 @@ import configparser
 import logging
 import os
 import pathlib
+import shlex
 import subprocess
 import sys
 import tempfile
@@ -313,9 +314,10 @@ def build(script, source_root, dist_root, artifact_pattern, testbed, artifact_st
     # testbed.execute(['ls', '-l', source_root])
     # testbed.execute(['stat', source_root])
     # testbed.execute(['stat', built_artifact])
+    patterns = " ".join(map(lambda x: os.path.join(source_root, x), shlex.split(artifact_pattern)))
     testbed.check_exec(
         ['sh', '-ec', 'mkdir -p "%s" && cp -R -t "%s" %s && touch -d at 0 "%s" "%s"/*' %
-        (dist_root, dist_root, os.path.join(source_root, artifact_pattern), dist_root, dist_root)])
+        (dist_root, dist_root, patterns, dist_root, dist_root)])
     testbed.command('copyup', (dist_root, artifact_store))
 
 

-- 
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