Use the expanded commit name internally
[invirt/packages/invirt-dev.git] / invirt-submit-build
index 8175865..f9b5697 100755 (executable)
@@ -41,6 +41,9 @@ def main():
                                      uuid.uuid4()))
 
     try:
+        # TODO: clean up this interface.
+        b.ensureValidPackage(package)
+        commit = b.canonicalize_commit(package, commit)
         b.validateBuild(pocket, package, commit)
     except b.InvalidBuild, e:
         print >>sys.stderr, "E: %s" % e