From 8d22c1bab7a36f636171ba263deb80fed86298b1 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 16 Sep 2013 22:42:47 +0200 Subject: apply-patches.sh: Go back to only warn about unsupported file types Fixes http://autobuild.buildroot.net/results/868/8687be8ec029486d9c5e2224cde542134f72884b/ The recent (d245fbb41dc: apply-patches.sh: detect missing patches) change to apply-patches.sh causes a number of regressions with packages using downloadable tarballs of patches (typically from Debian), as those contain additional files besides just the patches (ChangeLog's, debian/rules, ..). This use case is arguably abusing the _PATCH handling, but it used to work so people might rely on it so go back to only warn about this instead of erroring out. At the same time reword the warning message. Signed-off-by: Peter Korsgaard --- support/scripts/apply-patches.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/scripts/apply-patches.sh') diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh index 656aa716c..1ebaea990 100755 --- a/support/scripts/apply-patches.sh +++ b/support/scripts/apply-patches.sh @@ -73,8 +73,8 @@ function apply_patch { *.patch*) type="patch"; uncomp="cat"; ;; *) - echo "Unsupported format file for ${path}/${patch}"; - exit 1; + echo "Unsupported file type for ${path}/${patch}, skipping"; + return 0 ;; esac echo "" -- cgit v1.2.3