1. Michał Górny
  2. flaggie

Commits

Michał Górny  committed c25aff7

Preserve the umask when creating new package.* file.

  • Participants
  • Parent commits 79d78ed
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/packagefile.py

View file
  • Ignore whitespace
 			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