From 4a2a5021ed331fdd5088f2cf6bf9ec478083dd4c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 9 Nov 2011 17:05:11 +0100 Subject: [PATCH] fix path to pbuilder script --- kernel_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_build.py b/kernel_build.py index f5a7e7a..47a63ae 100644 --- a/kernel_build.py +++ b/kernel_build.py @@ -44,14 +44,14 @@ logger.addHandler(stream_handler) def build_kernel_with_pbuilder(revision, pbuilder_script, dist='stable'): - pbuilder_script = os.path.abspath(pbuilder_script) + pbuilder_script = os.path.join(sys.path[0],pbuilder_script) cmd = [ SUDO, PBUILDER, '--execute', '--hookdir', '""', - '--bindmounts', '"/srv/git %s"' %(os.path.join(CWD,'..')), + '--bindmounts', '"/srv/git %s" /var/lib/jenkins/jenkins_build_script/' % (CWD), '--', pbuilder_script, '--cwd', '%s' %('/tmp'), -- 2.39.5