]> git.pld-linux.org Git - packages/vim.git/commitdiff
fetch missing/mismatching files manually. faster than builder does that
authorElan Ruusamäe <glen@delfi.ee>
Fri, 21 Dec 2012 09:00:25 +0000 (11:00 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 21 Dec 2012 09:00:25 +0000 (11:00 +0200)
update-source.sh

index 8463986ca5d38ed12009cd9a8c3e5b9915e681cc..adad465d8ca4b80b389f38ad6eca3655e77ada84 100755 (executable)
@@ -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
This page took 0.038661 seconds and 4 git commands to generate.