revise pseudocode in notes to be more robust
authorGreg Price <price@mit.edu>
Fri, 8 May 2009 04:38:43 +0000 (00:38 -0400)
committerGreg Price <price@mit.edu>
Fri, 8 May 2009 04:38:43 +0000 (00:38 -0400)
svn path=/trunk/scripts/git-hooks/; revision=2350

notes

diff --git a/notes b/notes
index 0663e05..f79e7c3 100644 (file)
--- a/notes
+++ b/notes
@@ -9,9 +9,14 @@ on commit to superrepo:
   for each changed submodule revision:
     (as optimization: if same commit already in dev, just reprepro move)
     try to build submodule
   for each changed submodule revision:
     (as optimization: if same commit already in dev, just reprepro move)
     try to build submodule
-    if fail, abort -- whole commit, probably; else
+    if fail:
+      abort whole commit
+      clean up any previous packages' built files, maybe keep this one's around
+    remember package and version
+  for each changed submodule revision:  (if we're still going)
     tag submodule with version
     upload to dev/prod respectively
     tag submodule with version
     upload to dev/prod respectively
+    clean up built files
   actually commit
   zephyr
 
   actually commit
   zephyr