mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
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:
4
debian/bin/check-patches.sh
vendored
4
debian/bin/check-patches.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user