revise pseudocode in notes to be more robust
[invirt/scripts/git-hooks.git] / 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
-    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
+    clean up built files
   actually commit
   zephyr