changeset 830:cc26b22b2bd7

No longer create the 'snapshots' directory. It is not used and not needed. Leftover from the days where the master shipped the code to the slave as snapshots instead of having the slave fetch the code itself via recipe commands. Fixes #622.
author osimons
date Sun, 26 Sep 2010 16:45:54 +0000
parents 630b48a53fc6
children 7c80375d4817
files bitten/main.py bitten/tests/queue.py
diffstat 2 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/main.py
+++ b/bitten/main.py
@@ -46,10 +46,6 @@
         cursor.execute("INSERT INTO system (name,value) "
                        "VALUES ('bitten_version',%s)", (schema_version,))
 
-        # Create the directory for storing snapshot archives
-        snapshots_dir = os.path.join(self.env.path, 'snapshots')
-        os.mkdir(snapshots_dir)
-
         db.commit()
 
     def environment_needs_upgrade(self, db):
--- a/bitten/tests/queue.py
+++ b/bitten/tests/queue.py
@@ -128,7 +128,6 @@
     def setUp(self):
         self.env = EnvironmentStub()
         self.env.path = tempfile.mkdtemp()
-        os.mkdir(os.path.join(self.env.path, 'snapshots'))
 
         db = self.env.get_db_cnx()
         cursor = db.cursor()
Copyright (C) 2012-2017 Edgewall Software