Truncate local status folders on creation
Should help eliminate problems with old cache refs deb#459985, refs #19
This commit is contained in:
		| @@ -37,8 +37,8 @@ class LocalStatusRepository(BaseRepository): | |||||||
|         return os.path.join(self.directory, foldername) |         return os.path.join(self.directory, foldername) | ||||||
|  |  | ||||||
|     def makefolder(self, foldername): |     def makefolder(self, foldername): | ||||||
|         # "touch" the file. |         # "touch" the file, truncating it. | ||||||
|         file = open(self.getfolderfilename(foldername), "ab") |         file = open(self.getfolderfilename(foldername), "wb") | ||||||
|         file.close() |         file.close() | ||||||
|         # Invalidate the cache. |         # Invalidate the cache. | ||||||
|         self.folders = None |         self.folders = None | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Goerzen
					John Goerzen