From: Holger Levsen Date: Wed, 2 Nov 2011 15:18:42 +0000 (+0100) Subject: also bindmount the dir with the persistence file X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=233790914664d82fd6c312bbae38bb08f14d72f3;p=profitbricks%2Fjenkins-build-scripts.git also bindmount the dir with the persistence file --- diff --git a/kernel_build.py b/kernel_build.py index 1aa91fa..d0fecce 100644 --- a/kernel_build.py +++ b/kernel_build.py @@ -72,7 +72,7 @@ def build_kernel_with_pbuilder(revision, pbuilder_script, dist='stable'): PBUILDER, '--execute', '--hookdir', '""', - '--bindmounts', '"/srv/git %s"' %(CWD), + '--bindmounts', '"/srv/git %s"' %(os.path.join(CWD,'..')), '--', pbuilder_script, '--cwd', '%s' %('/tmp'), diff --git a/kernel_persistence.py b/kernel_persistence.py index 822ea53..c2bb22a 100644 --- a/kernel_persistence.py +++ b/kernel_persistence.py @@ -42,7 +42,7 @@ class KernelVersion(Base): self.pb_modules = pb_modules def __repr__(self): - return '' %( + return '' %( self.identifier, self.last_version, self.branch_name, self.pb_modules )