TRUNC new file

This commit is contained in:
Jeff Carr 2024-12-11 13:51:27 -06:00
parent 7b9f4389c2
commit 9ecbaaac0d
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ func (c *controlBox) buildPackage() (bool, error) {
}
func (c *controlBox) writeDebianControlFile() bool {
cf, err := os.OpenFile("files/DEBIAN/control", os.O_RDWR|os.O_CREATE, 0644)
cf, err := os.OpenFile("files/DEBIAN/control", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
log.Info("open control file failed", err)
return false