From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ceresoli Date: Thu, 05 Sep 2013 10:35:38 +0200 Subject: [Buildroot] [PATCH] apply-patches.sh: detect missing patches In-Reply-To: <20130905100459.13173009@skate> References: <20130813160017.GA2590@harvey.netwinder.org> <20130905100459.13173009@skate> Message-ID: <5228425A.7090502@lucaceresoli.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Thomas Petazzoni wrote: > Dear Thomas De Schampheleire, > > On Thu, 5 Sep 2013 09:03:33 +0200, Thomas De Schampheleire wrote: > >>> Although I agree with the concept of checking for existence, I'm not >>> sure about the action to take. >>> Earlier in apply-patches.sh, if a patch is in an unsupported format, >>> it is simply skipped (and a message printed). I think the action in >>> that case should line up with the nonexisting patch case, so either >>> give a warning and continue, or an error and stop. >> Any input from others? > My general feeling is that when something goes wrong or looks wrong, we > should abort with an error, and not try to continue with something > more-or-less broken/incorrect. I agree. Who reads a million lines of build outputwhen make exits returning zero? Definitely BR should stop and shout out loud about missing or incorrect patches. Luca