[Lunar-commits] r27008 - lunar/branches/stable/bin

Auke Kok sofar at lunar-linux.org
Tue Feb 5 19:07:10 CET 2008


Author: sofar
Date: 2008-02-05 19:07:10 +0100 (Tue, 05 Feb 2008)
New Revision: 27008

Modified:
   lunar/branches/stable/bin/lvu
Log:
Fix lvu submit again for git-am usage


Modified: lunar/branches/stable/bin/lvu
===================================================================
--- lunar/branches/stable/bin/lvu	2008-02-05 18:06:33 UTC (rev 27007)
+++ lunar/branches/stable/bin/lvu	2008-02-05 18:07:10 UTC (rev 27008)
@@ -838,12 +838,14 @@
       echo ""
       echo "# type a changelog message here. The first line should start with"
       echo "# the module name and summarize your change. All lines starting with '#'"
-      echo "# will be removed automatically"
+      echo "# will be removed automatically. Example: 'foo: version update'."
+      echo "# "
+      echo "# PLEASE FORMAT THE FIRST LINE ACCORDING TO ABOVE NOTES!!! THANK YOU!!!"
     ) > $TMP_MSG
     edit_file $TMP_MSG
     sed -i '/^#/d' $TMP_MSG
     (
-      head -n 1 $TMP_MSG
+      head -n 1 $TMP_MSG | sed 's/^/Subject: /g'
       echo ''
       echo "From: $REALNAME <$ADMIN>"
       tail +2 $TMP_MSG
@@ -1106,7 +1108,29 @@
         echo "$MODULE ($(installed_version $MODULE) -> $(run_details $MODULE > /dev/null ; echo $VERSION))"
       done
       ;;
-		
+    failed)
+      while read DATE COMMAND MODULE VERSION STATE JUNK ; do
+        if [ "$STATE" == "failed" ] && [ "$COMMAND" == "lin" ] ; then
+          # add to list of failed modules
+          if ! echo "$FAILED" | grep -qw $MODULE ; then
+            FAILED="$FAILED $MODULE "
+          fi
+        fi
+        # no need to remove if $MODULE is not in the list - speeds things up
+        if ! echo "$FAILED" | grep -qw "$MODULE" ; then
+          continue
+        fi
+        if ([ "$STATE" == "success" ] && [ "$COMMAND" == "lin" ]) ||
+             ([ "$STATE" == "success" ] && [ "$COMMAND" == "lrm" ]) ; then
+          # remove from failed modules
+          FAILED=`echo "$FAILED" | sed "s/ $MODULE //g"`
+        fi
+      done < $ACTIVITY_LOG
+      for MODULE in $FAILED ; do
+        echo $MODULE
+      done
+      ;;
+
     sum)
       if [ -n "$2" ] ; then
         if ! checksum  "$INSTALL_LOGS/$2-$(installed_version $2)" ; then



More information about the Lunar-commits mailing list