comparison 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
comparison
equal deleted inserted replaced
553:1af20baa532f 554:3a83cb3c6504
65 origtargz = os.path.join(self.work_dir, 65 origtargz = os.path.join(self.work_dir,
66 pkgbasename + ".orig.tar.gz") 66 pkgbasename + ".orig.tar.gz")
67 self.create_tarball(origtargz, self.work_dir, 67 self.create_tarball(origtargz, self.work_dir,
68 os.path.basename(pkgbasedir)) 68 os.path.basename(pkgbasedir))
69 69
70 changemsg = ("Update to SVN rev. %s" % (self.revision,)) 70 changemsg = ("Update to rev. %s" % (self.revision,))
71 self.copy_debian_directory(pkgbasedir, pkgbaseversion, 71 self.copy_debian_directory(pkgbasedir, pkgbaseversion,
72 changemsg) 72 changemsg)
73 73
74 self.create_source_package(pkgbasedir, origtargz) 74 self.create_source_package(pkgbasedir, origtargz)
75 self.move_source_package(pkgbasename) 75 self.move_source_package(pkgbasename)
128 def __init__(self, *args): 128 def __init__(self, *args):
129 super(SmartSourcePackager, self).__init__(*args) 129 super(SmartSourcePackager, self).__init__(*args)
130 self.pkgbasename = None 130 self.pkgbasename = None
131 self.pkgbaseversion = None 131 self.pkgbaseversion = None
132 self.origtargz = None 132 self.origtargz = None
133 origbuilder = self.track.builder
134 self.builder = PBuilder(origbuilder.builderconfig,
135 origbuilder.root_cmd,
136 origbuilder.release_signing_keyid)
133 137
134 def copy_workingcopy(self, dest): 138 def copy_workingcopy(self, dest):
135 treepkg.util.copytree(self.track.checkout_dir, dest) 139 treepkg.util.copytree(self.track.checkout_dir, dest)
136 140
137 def create_original_tarball(self): 141 def create_original_tarball(self):
153 script_name = os.path.join(self.work_dir, "createtarball") 157 script_name = os.path.join(self.work_dir, "createtarball")
154 treepkg.util.writefile(script_name, script, 0755) 158 treepkg.util.writefile(script_name, script, 0755)
155 159
156 treepkg.util.ensure_directory(self.src_dir) 160 treepkg.util.ensure_directory(self.src_dir)
157 treepkg.util.ensure_directory(self.log_dir) 161 treepkg.util.ensure_directory(self.log_dir)
158 self.track.builder.run_script([script_name], 162 self.builder.run_script([script_name],
159 logfile=os.path.join(self.log_dir, 163 logfile=os.path.join(self.log_dir,
160 "tarball_log.txt"), 164 "tarball_log.txt"),
161 bindmounts=[self.work_dir, self.src_dir]) 165 bindmounts=[self.work_dir, self.src_dir])
162 166
163 def create_orig_dir(self): 167 def create_orig_dir(self):
179 183
180 def do_package(self): 184 def do_package(self):
181 self.create_original_tarball() 185 self.create_original_tarball()
182 orig_dir = self.create_orig_dir() 186 orig_dir = self.create_orig_dir()
183 187
184 changemsg = ("Update to SVN rev. %s" % (self.revision,)) 188 changemsg = ("Update to rev. %s" % (self.revision,))
185 self.copy_debian_directory(orig_dir, self.pkgbaseversion, changemsg) 189 self.copy_debian_directory(orig_dir, self.pkgbaseversion, changemsg)
186 190
187 self.create_source_package(orig_dir, self.origtargz) 191 self.create_source_package(orig_dir, self.origtargz)
188 self.move_source_package(self.pkgbasename) 192 self.move_source_package(self.pkgbasename)
189 193
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)