From: Sergey Matveev Date: Tue, 15 Dec 2020 12:15:02 +0000 (+0300) Subject: Check if possible source file actually has .do nearby X-Git-Tag: v0.6.0~7 X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=commitdiff_plain;h=0151c27b27d1ff53cdf92488c412ae5cb01c3054 Check if possible source file actually has .do nearby --- diff --git a/ood.go b/ood.go index 95c3ed2..5edac29 100644 --- a/ood.go +++ b/ood.go @@ -68,6 +68,9 @@ func isSrc(cwd, tgt string) bool { if _, err := os.Stat(path.Join(d, f)); err != nil { return false } + if _, err := os.Stat(path.Join(d, f+".do")); err == nil { + return false + } if _, err := os.Stat(path.Join(d, RedoDir, f+DepSuffix)); err == nil { return false }