[Git][reproducible-builds/reprotest][wip-specify-build-path] Crude workaround to support --vary=build_path.path=/somepath/
Vagrant Cascadian (@vagrant)
gitlab at salsa.debian.org
Thu Feb 22 20:51:51 UTC 2024
Vagrant Cascadian pushed to branch wip-specify-build-path at Reproducible Builds / reprotest
Commits:
94e66c47 by Vagrant Cascadian at 2024-02-22T12:46:59-08:00
Crude workaround to support --vary=build_path.path=/somepath/
- - - - -
1 changed file:
- reprotest/__init__.py
Changes:
=====================================
reprotest/__init__.py
=====================================
@@ -220,7 +220,13 @@ class BuildContext(collections.namedtuple('_BuildContext',
kind='build')
logger.info("build successful, copying artifacts")
dist_base = os.path.join(self.testbed_dist, VSRC_DIR)
- testbed.check_exec2(shell_copy_pattern(dist_base, self.testbed_src, artifact_pattern))
+ try:
+ testbed.check_exec2(shell_copy_pattern(dist_base, self.testbed_src, artifact_pattern))
+ except:
+ # workaround when build_path.path is not the defaults
+ # FIXME needs to do cleanup of the files too
+ os.makedirs(build.tree, exist_ok=True)
+ testbed.check_exec2(shell_copy_pattern(dist_base, build.tree, artifact_pattern))
# FIXME: `touch` is needed because of the FIXME in build.faketime(). we can rm it after that is fixed
testbed.check_exec2(['sh', '-ec',
r"""cd "{0}" && touch -d at 0 . .. {1}""".format(dist_base, artifact_pattern)])
View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/-/commit/94e66c476534f489d54af5383b28a52f0cc6085e
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reprotest/-/commit/94e66c476534f489d54af5383b28a52f0cc6085e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20240222/5270de4d/attachment.htm>
More information about the rb-commits
mailing list