# HG changeset patch # User osimons # Date 1285519554 0 # Node ID cc26b22b2bd76dcd6928859e05e5e9fdcf6d2ea7 # Parent 630b48a53fc68a5a0b444e54ba81cb1c322eda3b 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. diff --git a/bitten/main.py b/bitten/main.py --- 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): diff --git a/bitten/tests/queue.py b/bitten/tests/queue.py --- 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()