]> git.pld-linux.org Git - projects/distfiles.git/blobdiff - show_spec.sh
find extra sources from detached checksum file
[projects/distfiles.git] / show_spec.sh
index 0b085a5e352a85fadab1c8b820cfc57c48127a2c..517f2f5459a7cf1855b1553ae1cd885e5cf1e3af 100755 (executable)
@@ -15,8 +15,13 @@ export GIT_DIR=`mktemp -d gitemp.XXXXXX --tmpdir`
     git ls-tree --name-only FETCH_HEAD | grep '.spec$' | while read file; do
         git show FETCH_HEAD:$file > $package || exitcode=1
     done
+
+    # checkout additional file for source/patch-md5
+    file=sources
+    if git ls-tree --name-only FETCH_HEAD | grep -q ^$file$; then
+        git show FETCH_HEAD:$file > $file || exitcode=1
+    fi
 )
 exitcode=$?
 rm -rf $GIT_DIR
 exit $exitcode
-
This page took 0.168713 seconds and 4 git commands to generate.