[Debtags-commits] [svn] r1552 - tagdb
Enrico Zini
enrico at costa.debian.org
Thu Feb 9 16:34:05 UTC 2006
Author: enrico
Date: Thu Feb 9 16:33:56 2006
New Revision: 1552
Modified:
tagdb/process
Log:
Correctly detect patches that have already been submitted
Modified: tagdb/process
==============================================================================
--- tagdb/process (original)
+++ tagdb/process Thu Feb 9 16:33:56 2006
@@ -76,15 +76,15 @@
# Submit the approved changes to the svn repository and the corrections to the
# debtags database
do_submit() {
- if [ ! -d $PATCHDIR ] || [ ! -e $PATCHDIR/* ]
+ if [ ! -d "$PATCHDIR" ] || [ -z "`find $PATCHDIR -type f | grep -v '/sent-'`" ]
then
- echo "No manual patches found" >&2
+ echo "No uncommitted patches found" >&2
return
fi
echo ""
echo "Changes to submit:"
echo ""
- (cd $PATCHDIR; ls -la)
+ (cd $PATCHDIR; ls -l `ls | grep -v '^sent-'`)
echo ""
ANS=""
while [ "$ANS" != quit ]
@@ -125,7 +125,7 @@
then
svn commit tags --file=$COMMITMSG
rm $COMMITMSG
- for i in `find $PATCHDIR | grep -v '^sent-'`
+ for i in `find $PATCHDIR -type f | grep -v '/sent-'`
do
debtags submit $i
mv $i "$PATCHDIR/sent-`basename $i`"
More information about the Debtags-commits
mailing list