From dbc216ed4fb2b5849f6816da8c48ff5109bdd685 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 2 Jun 2009 11:04:37 +0000 Subject: [PATCH] b=19693 i=jack i=rread Close up a race between builds and build cleanups. --- build/lbuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/lbuild b/build/lbuild index d5ef88f..6c4d4c3 100755 --- a/build/lbuild +++ b/build/lbuild @@ -962,6 +962,11 @@ store_for_reuse() { location="$location"/"$signature"/"$module" mkdir -p "$location" + # the cleanup script removes any directory that doesn't have a + # .lastused, so let's try to prevent that as soon as we can + # this solution still slightly racy with the cleanup script + # but the race is a lot tighter now + touch -t 197001010000 "$location/.lastused" ## use eval/echo here to make sure shell expansions are performed #if ! cp -a${linkflag} $(eval echo $articles) "$location"; then local article -- 1.8.3.1