TRUNC new file
This commit is contained in:
parent
7b9f4389c2
commit
9ecbaaac0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue