From 4c35566e03ba1b945a25d2809daafc946bdf22e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= Date: Tue, 27 Apr 2010 20:09:01 +0200 Subject: [PATCH] Add CB(pre)install hooks to osc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Simon Möller --- osc/build.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/build.py b/osc/build.py index f6ba25e4..23129d16 100644 --- a/osc/build.py +++ b/osc/build.py @@ -113,6 +113,8 @@ class Buildinfo: self.deps.append(p) self.vminstall_list = [ dep.name for dep in self.deps if dep.vminstall ] + self.cbinstall_list = [ dep.name for dep in self.deps if dep.cbinstall ] + self.cbpreinstall_list = [ dep.name for dep in self.deps if dep.cbpreinstall ] self.preinstall_list = [ dep.name for dep in self.deps if dep.preinstall ] self.runscripts_list = [ dep.name for dep in self.deps if dep.runscripts ] @@ -143,6 +145,7 @@ class Pac: 'version', 'release', 'project', 'repository', 'preinstall', 'vminstall', 'noinstall', 'runscripts', + 'cbinstall', 'cbpreinstall', ]: self.mp[i] = node.get(i) @@ -689,6 +692,8 @@ def main(opts, argv): rpmlist.append('preinstall: ' + ' '.join(bi.preinstall_list) + '\n') rpmlist.append('vminstall: ' + ' '.join(bi.vminstall_list) + '\n') + rpmlist.append('cbinstall: ' + ' '.join(bi.cbinstall_list) + '\n') + rpmlist.append('cbpreinstall: ' + ' '.join(bi.cbpreinstall_list) + '\n') rpmlist.append('runscripts: ' + ' '.join(bi.runscripts_list) + '\n') rpmlist_file = NamedTemporaryFile(prefix='rpmlist.')