[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Sat May 17 05:36:49 MDT 2014
The branch, master has been updated
via 4ba733a Create db directory if it did not yet exist.
from 8a8c26c Add makefile with check target.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 4ba733af447860d96d8f090ad9c1dfafc935798d
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Sat May 17 13:36:02 2014 +0200
Create db directory if it did not yet exist.
This is fallout from the svn -> git migration, as git does not support
empty directories.
-----------------------------------------------------------------------
Summary of changes:
buildfarm/__init__.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/buildfarm/__init__.py b/buildfarm/__init__.py
index 3708dc2..ac6add9 100644
--- a/buildfarm/__init__.py
+++ b/buildfarm/__init__.py
@@ -158,7 +158,9 @@ class BuildFarm(object):
def _get_store(self):
if self.store is not None:
return self.store
- db_path = os.path.join(self.path, "db", "hostdb.sqlite")
+ db_dir_path = os.path.join(self.path, "db")
+ 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)
setup_schema(self.store)
--
build.samba.org
More information about the samba-cvs
mailing list