diff recipes/gnupg/base.py @ 554:3a83cb3c6504

Always use Pbuilder to create sources for gnupg
author Bjoern Ricks <bricks@intevation.de>
date Tue, 31 May 2011 08:58:13 +0000
parents f5282057838a
children 3105488b3eab
line wrap: on
line diff
--- a/recipes/gnupg/base.py	Tue Mar 08 14:23:25 2011 +0000
+++ b/recipes/gnupg/base.py	Tue May 31 08:58:13 2011 +0000
@@ -67,7 +67,7 @@
         self.create_tarball(origtargz, self.work_dir,
                             os.path.basename(pkgbasedir))
 
-        changemsg = ("Update to SVN rev. %s" % (self.revision,))
+        changemsg = ("Update to rev. %s" % (self.revision,))
         self.copy_debian_directory(pkgbasedir, pkgbaseversion,
                                    changemsg)
 
@@ -130,6 +130,10 @@
         self.pkgbasename = None
         self.pkgbaseversion = None
         self.origtargz = None
+        origbuilder = self.track.builder
+        self.builder = PBuilder(origbuilder.builderconfig,
+                                origbuilder.root_cmd,
+                                origbuilder.release_signing_keyid)
 
     def copy_workingcopy(self, dest):
         treepkg.util.copytree(self.track.checkout_dir, dest)
@@ -155,7 +159,7 @@
 
         treepkg.util.ensure_directory(self.src_dir)
         treepkg.util.ensure_directory(self.log_dir)
-        self.track.builder.run_script([script_name],
+        self.builder.run_script([script_name],
                                       logfile=os.path.join(self.log_dir,
                                                            "tarball_log.txt"),
                                       bindmounts=[self.work_dir, self.src_dir])
@@ -181,7 +185,7 @@
         self.create_original_tarball()
         orig_dir = self.create_orig_dir()
 
-        changemsg = ("Update to SVN rev. %s" % (self.revision,))
+        changemsg = ("Update to rev. %s" % (self.revision,))
         self.copy_debian_directory(orig_dir, self.pkgbaseversion, changemsg)
 
         self.create_source_package(orig_dir, self.origtargz)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)