aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--g_sorcery/db_layout.py1
-rw-r--r--g_sorcery/package_db.py1
2 files changed, 1 insertions, 1 deletions
diff --git a/g_sorcery/db_layout.py b/g_sorcery/db_layout.py
index fe6f281..ea4298a 100644
--- a/g_sorcery/db_layout.py
+++ b/g_sorcery/db_layout.py
@@ -230,6 +230,7 @@ class DBLayout(object):
"""
if os.path.exists(self.directory):
shutil.rmtree(self.directory)
+ os.makedirs(self.directory)
def read(self):
"""
diff --git a/g_sorcery/package_db.py b/g_sorcery/package_db.py
index 5eeeb63..ec2d45f 100644
--- a/g_sorcery/package_db.py
+++ b/g_sorcery/package_db.py
@@ -216,7 +216,6 @@ class PackageDB(object):
"""
self.db_layout.clean()
self.reset_db()
- self.write()
def write(self):