check-patches.sh: Validate Forwarded value slightly better

Don't confuse 'no' with 'not-needed'.

Don't accept values other than 'no', 'not-needed' and URLs which we
assume must begin with 'http'.

svn path=/dists/sid/linux/; revision=22043
This commit is contained in:
Ben Hutchings 2014-11-06 00:20:18 +00:00
parent 0c43c4d115
commit 9d5b8a243c
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ fgrep -v -f $TMPDIR/goodheaders $TMPDIR/used || test $? = 1
echo
echo "Patches without Origin or Forwarded header"
echo "=========================================="
xargs egrep -L '^(Origin|Forwarded):' < $TMPDIR/used || test $? = 1
xargs egrep -L '^(Origin:|Forwarded: (no\b|not-needed|http))' < $TMPDIR/used || test $? = 1
echo
echo "Patches to be forwarded"
echo "======================="
xargs egrep -l '^Forwarded: no' < $TMPDIR/used | grep -v ^debian/patches/debian/ || test $? = 1
xargs egrep -l '^Forwarded: no\b' < $TMPDIR/used || test $? = 1