From 270b47702e5d4847a48135659043e9eaa3c27a2e Mon Sep 17 00:00:00 2001 From: Jeromy Date: Tue, 26 May 2015 17:19:53 -0700 Subject: [PATCH] catch other error that means the file is locked --- repo/fsrepo/lock/lock.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repo/fsrepo/lock/lock.go b/repo/fsrepo/lock/lock.go index c10521deeed..c8f953f7eb3 100644 --- a/repo/fsrepo/lock/lock.go +++ b/repo/fsrepo/lock/lock.go @@ -34,6 +34,9 @@ func Locked(confdir string) (bool, error) { if err == syscall.EAGAIN { return true, nil } + if strings.Contains(err.Error(), "can't Lock file") { + return true, nil + } // lock fails on permissions error if os.IsPermission(err) {