]> Cypherpunks.ru repositories - goredo.git/blobdiff - ood.go
Fix workability under GNU/Linux and other systems because of different syscall
[goredo.git] / ood.go
diff --git a/ood.go b/ood.go
index 95c3ed29958bd65c415b326c5e2ed1b62a3f4499..7f2adde90a24a12f09c090e54a654ba0e5b2cfe8 100644 (file)
--- a/ood.go
+++ b/ood.go
@@ -1,6 +1,6 @@
 /*
 goredo -- redo implementation on pure Go
-Copyright (C) 2020 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -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
        }