From 233790914664d82fd6c312bbae38bb08f14d72f3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 2 Nov 2011 16:18:42 +0100 Subject: [PATCH] also bindmount the dir with the persistence file --- kernel_build.py | 2 +- kernel_persistence.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.5