Commits

Michał Górny committed c25aff7

Preserve the umask when creating new package.* file.

  • Participants
  • Parent commits 79d78ed

Comments (0)

Files changed (1)

lib/flaggie/packagefile.py

 			shutil.move(tmpname, self.path)
 			if backup is not None:
 				shutil.copymode(backup, self.path)
+			else:
+				umask = os.umask(022)
+				os.umask(umask)
+				os.chmod(self.path, 0666 & ~umask)
 
 			for e in self:
 				e.modified = False