From: Ian Weller Date: Tue, 22 Dec 2009 02:20:10 +0000 (-0600) Subject: Start metadir versioning now before it's too late X-Git-Url: https://projects.mako.cc/source/mw/commitdiff_plain/5c5537b6b5793b41b21191174f9ea30c360486ab?ds=sidebyside Start metadir versioning now before it's too late --- diff --git a/src/mw/metadir.py b/src/mw/metadir.py index ab99288..e6d2bc8 100644 --- a/src/mw/metadir.py +++ b/src/mw/metadir.py @@ -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')