]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
also bindmount the dir with the persistence file
authorHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 15:18:42 +0000 (16:18 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 15:18:42 +0000 (16:18 +0100)
kernel_build.py
kernel_persistence.py

index 1aa91fa74f38275dd8e2493855644feddffe39db..d0fecce231e6672c02c253c0960db8655fdf7a5a 100644 (file)
@@ -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'),
index 822ea53a600b88464310e0fded97a236584ab72c..c2bb22aa7a67f0de7f90e9a03d64e61476ec8802 100644 (file)
@@ -42,7 +42,7 @@ class KernelVersion(Base):
         self.pb_modules = pb_modules
 
     def __repr__(self):
-        return '<KernelVersion(identifier=\'%s\', last_version=\'%s\'), branch_name=\'%s\', pb_modules=\'%s\'>' %(
+        return '<KernelVersion(identifier=\'%s\', last_version=\'%s\', branch_name=\'%s\', pb_modules=\'%s\')>' %(
                 self.identifier, self.last_version, self.branch_name, self.pb_modules
         )