673 |
sys.stderr(1) |
sys.stderr(1) |
674 |
|
|
675 |
for filename in sources: |
for filename in sources: |
676 |
if not is_valid_hash(os.path.join(cwd, "SOURCES", filename), options.algo, options.hexdigest): |
path = os.path.join(cwd, "SOURCES", filename) |
677 |
|
if not is_valid_hash(path, options.algo, options.hexdigest): |
678 |
print >>sys.stderr, "ERROR: Hash file failed check for %s!" % path |
print >>sys.stderr, "ERROR: Hash file failed check for %s!" % path |
679 |
print >>sys.stderr, "ERROR: Reverting changes!" |
print >>sys.stderr, "ERROR: Reverting changes!" |
680 |
subprocess.call(['svn', 'revert', '-R', cwd], cwd=cwd) |
subprocess.call(['svn', 'revert', '-R', cwd], cwd=cwd) |
686 |
# checkin changes |
# checkin changes |
687 |
subprocess.check_call(['mgarepo', 'ci', '-m', 'new version %s' % options.version], cwd=cwd) |
subprocess.check_call(['mgarepo', 'ci', '-m', 'new version %s' % options.version], cwd=cwd) |
688 |
# and submit |
# and submit |
689 |
subprocess.check_call(['mgarepo', 'submit'], cwd=cwd) |
# XXX HACK NOT TO AUTO SUBMIT ATM |
690 |
|
if options.hexdigest is None: |
691 |
|
subprocess.check_call(['mgarepo', 'submit'], cwd=cwd) |
692 |
except subprocess.CalledProcessError: |
except subprocess.CalledProcessError: |
693 |
sys.exit(1) |
sys.exit(1) |
694 |
|
|