Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] apply-patches.sh: handle any file name as *.patch
@ 2016-03-10 11:19 yegorslists at googlemail.com
  2016-03-10 13:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: yegorslists at googlemail.com @ 2016-03-10 11:19 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@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@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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-13 21:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10 11:19 [Buildroot] [PATCH] apply-patches.sh: handle any file name as *.patch yegorslists at googlemail.com
2016-03-10 13:37 ` Thomas Petazzoni
2016-03-10 22:44   ` Arnout Vandecappelle
2016-03-12 23:22   ` Yann E. MORIN
2016-03-13 21:48     ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox