Browse Source

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 <jacmet@sunsite.dk>
Peter Korsgaard 12 years ago
parent
commit
8d22c1bab7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      support/scripts/apply-patches.sh

+ 2 - 2
support/scripts/apply-patches.sh

@@ -73,8 +73,8 @@ function apply_patch {
 	*.patch*)
 	*.patch*)
 	type="patch"; uncomp="cat"; ;;
 	type="patch"; uncomp="cat"; ;;
 	*)
 	*)
-	echo "Unsupported format file for ${path}/${patch}";
-	exit 1;
+	echo "Unsupported file type for ${path}/${patch}, skipping";
+	return 0
 	;;
 	;;
     esac
     esac
     echo ""
     echo ""