]> projects.mako.cc - mw/commitdiff
Start metadir versioning now before it's too late
authorIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 02:20:10 +0000 (20:20 -0600)
committerIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 02:20:10 +0000 (20:20 -0600)
src/mw/metadir.py

index ab99288c47f5bc6e0e3c3980d27ee3768e993044..e6d2bc896347c28f3c104472b8051a7aacc7c62d 100644 (file)
@@ -51,6 +51,9 @@ class Metadir(object):
             sys.exit(1)
         else:
             os.mkdir(self.location, 0755)
+        # metadir versioning
+        fd = file(os.path.join(self.location, 'version'))
+        fd.write('1')
         # create config
         self.config = ConfigParser.RawConfigParser()
         self.config.add_section('remote')

Benjamin Mako Hill || Want to submit a patch?