[Lunar-commits] r27006 - lunar/trunk/bin

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


Author: sofar
Date: 2008-02-05 19:05:45 +0100 (Tue, 05 Feb 2008)
New Revision: 27006

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


Modified: lunar/trunk/bin/lvu
===================================================================
--- lunar/trunk/bin/lvu	2007-12-11 21:41:22 UTC (rev 27005)
+++ lunar/trunk/bin/lvu	2008-02-05 18:05:45 UTC (rev 27006)
@@ -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