From: Holger Levsen Date: Wed, 9 Nov 2011 16:05:11 +0000 (+0100) Subject: fix path to pbuilder script X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4a2a5021ed331fdd5088f2cf6bf9ec478083dd4c;p=profitbricks%2Fjenkins-build-scripts.git fix path to pbuilder script --- 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'),