The branch, master has been updated
via 326c4af Only create db directory if it does not yet exist.
from 4ba733a Create db directory if it did not yet exist.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 326c4af20b34726da9382673d4018e6ae58f18c1
Author: Jelmer Vernooij <[email protected]>
Date: Sun May 18 10:50:18 2014 +0200
Only create db directory if it does not yet exist.
-----------------------------------------------------------------------
Summary of changes:
buildfarm/__init__.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/buildfarm/__init__.py b/buildfarm/__init__.py
index ac6add9..7c4428e 100644
--- a/buildfarm/__init__.py
+++ b/buildfarm/__init__.py
@@ -159,7 +159,8 @@ class BuildFarm(object):
if self.store is not None:
return self.store
db_dir_path = os.path.join(self.path, "db")
- os.mkdir(db_dir_path)
+ if not os.path.isdir(db_dir_path):
+ os.mkdir(db_dir_path)
db_path = os.path.join(db_dir_path, "hostdb.sqlite")
db = create_database("sqlite:%s?timeout=%f" % (db_path, self.timeout))
self.store = Store(db)
--
build.samba.org