[sysadmin-bin: 133/168] DOAP file has to be valid before pending flag can be cleared



commit 9564122ae09d78aca0b9a02e79a631d6c6c304ca
Author: Olav Vitters <olav vitters nl>
Date:   Sun Apr 18 13:45:30 2010 +0200

    DOAP file has to be valid before pending flag can be cleared

 finish-import |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/finish-import b/finish-import
index 097e640..bdda38e 100755
--- a/finish-import
+++ b/finish-import
@@ -22,6 +22,14 @@ if ! [ -e $GIT_DIR/pending ] ; then
     exit 1
 fi
 
+if [ -e $GIT_DIR/gnome_doap ] ; then
+    validate-doap "$name" < $GIT_DIR/gnome_doap
+    if [ $? -gt 0 ]; then
+        echo ERROR: Cannot clear pending flag as DOAP syntax is invalid >&2
+        exit 1
+    fi
+fi
+
 echo "Clearing pending flag on $GIT_DIR"
 rm $GIT_DIR/pending
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]