[Buildroot] [PATCH] apply-patches.sh: handle any file name as *.patch

yegorslists at googlemail.com yegorslists at googlemail.com
Thu Mar 10 11:19:49 UTC 2016


From: Yegor Yefremov <yegorslists at googlemail.com>

Handle both *.patch and default cases as *.patch. This is needed
in order to handle downloaded patches generated by for example
cgit, that have no file name extension.

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
 support/scripts/apply-patches.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 201278d..e4cccf5 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -83,12 +83,8 @@ function apply_patch {
             type="compress"; uncomp="uncompress -c"; ;;
             *.diff*)
             type="diff"; uncomp="cat"; ;;
-            *.patch*)
+            *.patch*|*)
             type="patch"; uncomp="cat"; ;;
-            *)
-            echo "Unsupported file type for ${path}/${patch}, skipping";
-            return 0
-            ;;
         esac
     fi
     if [ -z "$silent" ] ; then
-- 
2.7.0



More information about the buildroot mailing list