]> Cypherpunks.ru repositories - goredo.git/commitdiff
Check if possible source file actually has .do nearby
authorSergey Matveev <stargrave@stargrave.org>
Tue, 15 Dec 2020 12:15:02 +0000 (15:15 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 15 Dec 2020 12:28:43 +0000 (15:28 +0300)
ood.go

diff --git a/ood.go b/ood.go
index 95c3ed29958bd65c415b326c5e2ed1b62a3f4499..5edac297178e314ccceec81380fbbeddeb8350fd 100644 (file)
--- 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
        }