summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-07 21:19:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-09 17:46:25 +0000
commit326ef69d1296cd35a86d1eaee0741e6fc956af52 (patch)
tree9e91354627cbdc15f0c7cd9d03f8259bc81a515a /scripts
parent4a13766c7b223d82e8cf682db999a135d2b8412c (diff)
downloadopenembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.tar.gz
openembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.tar.bz2
openembedded-core-326ef69d1296cd35a86d1eaee0741e6fc956af52.zip
scripts/send-pull-request: allow sending of patches without a cover letter
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/send-pull-request21
1 files changed, 12 insertions, 9 deletions
diff --git a/scripts/send-pull-request b/scripts/send-pull-request
index be130096c1..8d51ce2ec1 100755
--- a/scripts/send-pull-request
+++ b/scripts/send-pull-request
@@ -108,15 +108,18 @@ fi
# Verify the cover letter is complete and free of tokens
-CL="$PDIR/0000-cover-letter.patch"
-for TOKEN in SUBJECT BLURB; do
- grep -q "*** $TOKEN HERE ***" "$CL"
- if [ $? -eq 0 ]; then
- echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')."
- exit 1
- fi
-done
-
+if [ -e $PDIR/0000-cover-letter.patch ]; then
+ CL="$PDIR/0000-cover-letter.patch"
+ for TOKEN in SUBJECT BLURB; do
+ grep -q "*** $TOKEN HERE ***" "$CL"
+ if [ $? -eq 0 ]; then
+ echo "ERROR: Please edit $CL and try again (Look for '*** $TOKEN HERE ***')."
+ exit 1
+ fi
+ done
+else
+ echo "WARNING: No cover letter will be send."
+fi
# Harvest emails from the generated patches and populate AUTO_CC.
if [ $AUTO_CL -eq 1 ]; then