git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] quiltimport: Skip non-existent patches

From
GUGeert Uytterhoeven <geert.uytterhoeven@sonycom.com>
Date
Sep 28, 2007, 14:06 UTC
Message-ID
<Pine.LNX.4.62.0709281606430.11943@pademelon.sonytel.be>
In-Reply-To
<1190925059-5233-1-git-send-email-dbn.lists@gmail.com>
On Thu, 27 Sep 2007, Dan Nicholson wrote:
> When quiltimport encounters a non-existent patch in the series file,
> just skip to the next patch. This matches the behavior of quilt.
> 
> Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Acked-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Show 21 quoted lines
> ---
>  git-quiltimport.sh |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/git-quiltimport.sh b/git-quiltimport.sh
> index 74a54d5..880c81d 100755
> --- a/git-quiltimport.sh
> +++ b/git-quiltimport.sh
> @@ -71,6 +71,10 @@ commit=$(git rev-parse HEAD)
>  
>  mkdir $tmp_dir || exit 2
>  for patch_name in $(grep -v '^#' < "$QUILT_PATCHES/series" ); do
> +	if ! [ -f "$QUILT_PATCHES/$patch_name" ] ; then
> +		echo "$patch_name doesn't exist. Skipping."
> +		continue
> +	fi
>  	echo $patch_name
>  	git mailinfo "$tmp_msg" "$tmp_patch" \
>  		<"$QUILT_PATCHES/$patch_name" >"$tmp_info" || exit 3
> -- 
> 1.5.3.2
With kind regards,
 
Geert Uytterhoeven
Software Architect
Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:    +32 (0)2 700 8453	
Fax:      +32 (0)2 700 8622	
E-mail:   Geert.Uytterhoeven@sonycom.com	
Internet: http://www.sony-europe.com/
 	
Sony Network and Software Technology Center Europe	
A division of Sony Service Centre (Europe) N.V.	
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium	
VAT BE 0413.825.160 · RPR Brussels	
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
Previous: Dan Nicholson
Message 9 of 9 in “git-quiltimport and non-existent patches”
  1. Geert UytterhoevenSep 27, 2007
  2. Junio C HamanoSep 27, 2007
  3. quiltimport: Skip non-existent patchesDan Nicholson, Sep 27, 2007
  4. Dan NicholsonSep 27, 2007
  5. Junio C HamanoSep 27, 2007
  6. Dan NicholsonSep 27, 2007
  7. Junio C HamanoSep 27, 2007
  8. Dan NicholsonSep 27, 2007
  9. Geert UytterhoevenSep 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.