From: brian Date: Tue, 2 Jun 2009 11:04:37 +0000 (+0000) Subject: b=19693 X-Git-Tag: v1_9_0_200~29 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=dbc216ed4fb2b5849f6816da8c48ff5109bdd685;p=fs%2Flustre-release.git b=19693 i=jack i=rread Close up a race between builds and build cleanups. --- 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