[packages/vim] update-source: exclude files already in git tree

glen glen at pld-linux.org
Sun Mar 31 10:44:25 CEST 2013


commit 315a13bce155540ac20e45fb11c11a1d7e02af33
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 31 11:43:52 2013 +0300

    update-source: exclude files already in git tree

 update-source.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/update-source.sh b/update-source.sh
index 63062b6..7a3b773 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -37,7 +37,10 @@ if [ "$1" ]; then
 	ver=$1
 else
 	echo "Fetching latest patches list..."
-	wget -nv $sources -O sources
+	wget -nv $sources -O sources.new
+	# exclude files already in git tree
+	git ls-files "$basever.*" | sed -e 's/\./\\./g;s/$/$/'| grep -vf - sources.new > sources
+	rm sources.new
 	# also update patches README
 	wget -nv $baseurl/README -O README.patches
 	ver=$(tail -n1 sources | awk '{print $NF}')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim.git/commitdiff/315a13bce155540ac20e45fb11c11a1d7e02af33



More information about the pld-cvs-commit mailing list