From cf2bf08ec97847069ce22745476b4b2987b035e5 Mon Sep 17 00:00:00 2001 From: Øyvind Ingebrigtsen Øvergaard Date: Sun, 20 Dec 2015 23:13:58 +0100 Subject: bottle: don't read mtime from nonexistant files If the source contains a broken symlink, `brew bottle` would fail for no good reason when trying to determine the most recently modified file. To avoid this, we ignore any files for which stat(2) fails. Closes Homebrew/homebrew#47111. Signed-off-by: Mike McQuaid --- Library/Homebrew/test/resources/source-with-broken-symlink/broken-link | 1 + 1 file changed, 1 insertion(+) create mode 120000 Library/Homebrew/test/resources/source-with-broken-symlink/broken-link (limited to 'Library/Homebrew/test/resources') diff --git a/Library/Homebrew/test/resources/source-with-broken-symlink/broken-link b/Library/Homebrew/test/resources/source-with-broken-symlink/broken-link new file mode 120000 index 000000000..cfa0a4651 --- /dev/null +++ b/Library/Homebrew/test/resources/source-with-broken-symlink/broken-link @@ -0,0 +1 @@ +does-not-exist \ No newline at end of file -- cgit v1.2.3