Fix update to next version

Julien LepillerFri Jun 22 21:08:49+0200 2018

49cdbc3

Fix update to next version

offlate/systems/tp.py

8282
        if oldname == self.filename:
8383
            self.popath = self.popath + '.new.po'
8484
            self.getpo()
85+
            self.merge(self.popath, oldpath, callback)
86+
            os.remove(oldpath)
87+
            os.rename(self.popath, oldpath)
8588
            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)
8989
        else:
9090
            self.getpo()
91-
            self.merge(self.filename, oldpath, callback)
91+
            self.merge(self.popath, oldpath, callback)
9292
            os.remove(oldpath)
9393
9494
    def merge(self, tofile, fromfile, callback):