Changeset 3036 for trunk/packages/invirt-dev/invirt-submit-build
- Timestamp:
- Jul 6, 2010, 12:27:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirt-submit-build
r3035 r3036 47 47 b.validateBuild(pocket, package, commit) 48 48 except b.InvalidBuild, e: 49 print >>sys.stderr, "E: %s" % e 49 msg = "E: %s" % e 50 print >>sys.stderr, msg 51 # Prevent an attack by submitting excessively long arguments 52 args = [arg[:min(len(arg), 80)] for arg in (pocket, package, commit)] 53 b.runHook('failed-submit', args + [principal], stdin_str=msg) 50 54 sys.exit(1) 51 55 … … 58 62 q.close() 59 63 os.rename(q_name, q_path) 64 short_commit = b.canonicalize_commit(package, commit, shorten=True) 65 b.runHook('post-submit', [pocket, package, short_commit, principal]) 66 print '%s, your job to build %s for %s:%s has been submitted!' % (principal, short_commit, package, pocket) 60 67 61 68
Note: See TracChangeset
for help on using the changeset viewer.