Changeset 3036 for trunk/packages/invirt-dev/invirtibuilder
- Timestamp:
- Jul 6, 2010, 12:27:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirtibuilder
r3035 r3036 250 250 shutil.rmtree(workdir) 251 251 252 253 def reportBuild(build):254 """Run hooks to report the results of a build attempt."""255 256 c.captureOutput(['run-parts',257 '--arg=%s' % build.build_id,258 '--',259 b._HOOKS_DIR])260 261 262 252 def build(): 263 253 """Deal with items in the build queue. … … 296 286 297 287 db.version = str(b.getVersion(package, commit)) 288 b.runHook('pre-build', [str(db.build_id), db.pocket, db.package, 289 db.commit, db.principal, db.version, str(db.inserted_at)]) 298 290 299 291 # If validateBuild returns something other than True, then … … 367 359 os.unlink(os.path.join(b._QUEUE_DIR, build)) 368 360 369 reportBuild(db) 370 361 if db.succeeded: 362 b.runHook('post-build', [str(db.build_id)]) 363 else: 364 b.runHook('failed-build', [str(db.build_id)]) 371 365 372 366 class Invirtibuilder(pyinotify.ProcessEvent):
Note: See TracChangeset
for help on using the changeset viewer.