Changeset 3028 for trunk/packages/invirt-dev/invirt-submit-build
- Timestamp:
- Jul 5, 2010, 2:01:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirt-submit-build
r2639 r3028 19 19 20 20 import datetime 21 import optparse 21 22 import os 22 23 import sys … … 28 29 29 30 def main(): 30 pocket, package, commit = sys.argv[1:4] 31 parser = optparse.OptionParser('Usage: %prog pocket package commit') 32 opts, args = parser.parse_args() 33 if len(args) != 3: 34 parser.print_help() 35 return 1 36 pocket, package, commit = args 31 37 principal = os.environ['REMOTE_USER'] 32 38 request_time = datetime.datetime.utcnow() … … 47 53 q = os.fdopen(q_fd, 'r+') 48 54 print >>q, "%s %s %s %s" % (pocket, package, commit, principal) 55 q.close() 49 56 os.rename(q_name, q_path) 50 57
Note: See TracChangeset
for help on using the changeset viewer.