Fix update to next version
offlate/systems/tp.py
82 | 82 | if oldname == self.filename: | |
83 | 83 | self.popath = self.popath + '.new.po' | |
84 | 84 | self.getpo() | |
85 | + | self.merge(self.popath, oldpath, callback) | |
86 | + | os.remove(oldpath) | |
87 | + | os.rename(self.popath, oldpath) | |
85 | 88 | self.popath = oldpath | |
86 | - | self.merge(self.popath + '.new.po', oldpath, callback) | |
87 | - | os.remove(self.popath) | |
88 | - | os.rename(self.popath + '.new.po', self.popath) | |
89 | 89 | else: | |
90 | 90 | self.getpo() | |
91 | - | self.merge(self.filename, oldpath, callback) | |
91 | + | self.merge(self.popath, oldpath, callback) | |
92 | 92 | os.remove(oldpath) | |
93 | 93 | ||
94 | 94 | def merge(self, tofile, fromfile, callback): |