X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/929f1553a7e60441bee2b53fed3530445a7299cf..HEAD:/invirt-submit-build diff --git a/invirt-submit-build b/invirt-submit-build index 4bed2ee..f202c3d 100755 --- a/invirt-submit-build +++ b/invirt-submit-build @@ -24,6 +24,8 @@ import sys import tempfile import uuid +from invirt.config import structs as config +import invirt.common as c import invirt.builder as b @@ -43,6 +45,8 @@ def main(): try: # TODO: clean up this interface. b.ensureValidPackage(package) + if config.build.get('mirror'): + c.captureOutput(['git', 'fetch'], cwd=b.getRepo(package)) commit = b.canonicalize_commit(package, commit) b.validateBuild(pocket, package, commit) except b.InvalidBuild, e: