Commits

Michał Górny committed bf6e2a7

Try to preserve the permissions of the original file.

Comments (0)

Files changed (1)

lib/flaggie/packagefile.py

 			backup = self.path + '~'
 			shutil.move(self.path, backup)
 			shutil.move(tmpname, self.path)
+			shutil.copymode(backup, self.path)
 
 			for e in self:
 				e.modified = False