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:
parent
0c43c4d115
commit
9d5b8a243c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue