diff -urN quilt-0.46/quilt.quiltrc quilt-0.46.wrlinkmod/quilt.quiltrc --- quilt-0.46/quilt.quiltrc 2006-06-12 11:54:47.000000000 -0500 +++ quilt-0.46.wrlinkmod/quilt.quiltrc 2008-01-29 14:04:41.000000000 -0600 @@ -25,3 +25,8 @@ # Use a specific editor for quilt (defaults to the value of $EDITOR before # sourcing this configuration file, or vi if $EDITOR wasn't set). #EDITOR=nedit + +#If your patch files are actually symlinks, this option set to yes will allow +#the symlink to be preserved (resulting in the file the link is pointing to +#to be refreshed). +#QUILT_NO_RM_SYMLINKS=yes diff -urN quilt-0.46/quilt/scripts/patchfns.in quilt-0.46.wrlinkmod/quilt/scripts/patchfns.in --- quilt-0.46/quilt/scripts/patchfns.in 2006-09-19 09:44:47.000000000 -0500 +++ quilt-0.46.wrlinkmod/quilt/scripts/patchfns.in 2008-01-28 14:56:14.000000000 -0600 @@ -749,7 +749,13 @@ { local filename="$1" - [ -e "$filename" ] && rm -f "$filename" + if [ -e "$filename" ] + then + if [ "$QUILT_NO_RM_SYMLINKS" != "yes" ] + then + rm -f "$filename" + fi + fi case "$filename" in *.gz)