[packages/vim] fetch missing/mismatching files manually. faster than builder does that
glen
glen at pld-linux.org
Fri Dec 21 10:00:42 CET 2012
commit 5afcbce0dcde6cf7ac5671dbef3d74a8561a4336
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Dec 21 11:00:25 2012 +0200
fetch missing/mismatching files manually. faster than builder does that
update-source.sh | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/update-source.sh b/update-source.sh
index 8463986..adad465 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -38,14 +38,6 @@ if [ "$1" ]; then
else
echo "Fetching latest patches list..."
wget -nv $sources -O sources
- git status --porcelain sources
-
- status=$(git status --porcelain sources)
- if [ -z "$status" ]; then
- echo >&2 "No changes to 'sources'. All done"
- echo "$status"
- exit 0
- fi
ver=$(tail -n1 sources | awk '{print $NF}')
fi
@@ -63,6 +55,11 @@ if [ "$curver" != "$ver" ]; then
s/^\(%define[ \t]\+patchlevel[ \t]\+\)[0-9]\+\$/\1$patch/
" $specfile
+ # fetch missing/mismatching files manually. faster than builder does that
+ md5sum -c sources 2>/dev/null|awk -F: '$NF != " OK" {print $1}' | while read file; do
+ echo "$baseurl/$file"
+ done | wget -nv -i -
+
WGET_OPTS="-nv" ../builder -g $specfile
if [ "$build_package" != 0 ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vim.git/commitdiff/5afcbce0dcde6cf7ac5671dbef3d74a8561a4336
More information about the pld-cvs-commit
mailing list