From 5afcbce0dcde6cf7ac5671dbef3d74a8561a4336 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 21 Dec 2012 11:00:25 +0200 Subject: [PATCH] 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 -- 2.44.0