Compare distfiles timestamps with the files in PORTAGE_ACTUAL_DISTDIR instead of...
authorZac Medico <zmedico@gentoo.org>
Wed, 29 Mar 2006 10:02:07 +0000 (10:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 29 Mar 2006 10:02:07 +0000 (10:02 -0000)
svn path=/main/trunk/; revision=3036

bin/ebuild.sh

index 0217c4ab653e84ce187348dd9a1c1d95df8c3a59..fe2f360f70292ed519e88e73fd8cad95cfc86957 100755 (executable)
@@ -665,7 +665,7 @@ dyn_unpack() {
                local checkme
                for x in ${AA}; do
                        echo ">>> Checking ${x}'s mtime..."
-                       if [ "${DISTDIR}/${x}" -nt "${WORKDIR}" ]; then
+                       if [ "${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/${x}" -nt "${WORKDIR}" ]; then
                                echo ">>> ${x} has been updated; recreating WORKDIR..."
                                newstuff="yes"
                                rm -rf "${WORKDIR}"