[reprotest] 07/07: presets: dpkg-source extract to different build dir iff varying the build-path

Ximin Luo infinity0 at debian.org
Tue Sep 26 14:36:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository reprotest.

commit 7d09dbc35572df838ade0f39ee7e2ad7bf4304b0
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue Sep 26 16:13:54 2017 +0200

    presets: dpkg-source extract to different build dir iff varying the build-path
---
 reprotest/presets.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/reprotest/presets.py b/reprotest/presets.py
index ce90156..9f4f340 100644
--- a/reprotest/presets.py
+++ b/reprotest/presets.py
@@ -83,8 +83,9 @@ def parse_dsc_aux(path):
     return [x.split()[-1].decode("utf-8") for x in dscfiles.splitlines()]
 
 def preset_deb_dsc(fn, aux):
+    # we use "$(basename "$PWD")" so that the dirname varies iff we are varying the whole build path
     return PRESET_DEB_DIR.prepend.build_command(
-            'dpkg-source -x "%s" build && cd build && ' % fn
+            'dpkg-source -x "%s" "$(basename "$PWD")" && cd "$(basename "$PWD")" && ' % fn
         ).set.artifact_pattern("*.deb"
         ).set.source_pattern(" ".join(shlex.quote(a) for a in [fn] + aux))
 

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