]> projects.mako.cc - mw/blobdiff - src/mw/metadir.py
Start metadir versioning now before it's too late
[mw] / 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?