projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes to invirtibuilder for case of missing package in super-repo, missing
[invirt/packages/invirt-dev.git]
/
invirt-submit-build
diff --git
a/invirt-submit-build
b/invirt-submit-build
index
4bed2ee
..
f202c3d
100755
(executable)
--- a/
invirt-submit-build
+++ b/
invirt-submit-build
@@
-24,6
+24,8
@@
import sys
import tempfile
import uuid
import tempfile
import uuid
+from invirt.config import structs as config
+import invirt.common as c
import invirt.builder as b
import invirt.builder as b
@@
-43,6
+45,8
@@
def main():
try:
# TODO: clean up this interface.
b.ensureValidPackage(package)
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:
commit = b.canonicalize_commit(package, commit)
b.validateBuild(pocket, package, commit)
except b.InvalidBuild, e: