Use absolute paths for files in ${DISTDIR}. Thanks to RB <aoz.syn@gmail.com>
authorZac Medico <zmedico@gentoo.org>
Sat, 3 May 2008 04:16:44 +0000 (04:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 May 2008 04:16:44 +0000 (04:16 -0000)
for this patch.

svn path=/main/trunk/; revision=10127

bin/emerge-webrsync

index b977359096f3a3e93bf0fb3d47df48cfb23161cf..07139634d730ad20813f877cc53a9b570a77b2ed 100755 (executable)
@@ -252,8 +252,8 @@ do_snapshot() {
                        local signature="${file}.gpgsig"
 
                        if [ -s "${file}" -a -s "${digest}" -a -s "${signature}" ] ; then
-                               check_file_digest "${digest}" "${file}" && \
-                               check_file_signature "${signature}" "${file}" && \
+                               check_file_digest "${DISTDIR}/${digest}" "${DISTDIR}/${file}" && \
+                               check_file_signature "${DISTDIR}/${signature}" "${DISTDIR}/${file}" && \
                                have_files=1
                        fi
 
@@ -261,8 +261,8 @@ do_snapshot() {
                                fetch_file "${mirror}/snapshots/${digest}" "${digest}" && \
                                fetch_file "${mirror}/snapshots/${signature}" "${signature}" && \
                                fetch_file "${mirror}/snapshots/${file}" "${file}" && \
-                               check_file_digest "${digest}" "${file}" && \
-                               check_file_signature "${signature}" "${file}" && \
+                               check_file_digest "${DISTDIR}/${digest}" "${DISTDIR}/${file}" && \
+                               check_file_signature "${DISTDIR}/${signature}" "${DISTDIR}/${file}" && \
                                have_files=1
                        fi