import tempfile
import uuid
+from invirt.config import structs as config
+import invirt.common as c
import invirt.builder as b
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: