1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-27 07:06:13 +01:00

Add CB(pre)install hooks to osc

Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
This commit is contained in:
Jan-Simon Möller 2010-04-27 20:09:01 +02:00
parent 70d772e942
commit 4c35566e03

View File

@ -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.')