Skip to content

Commit

Permalink
Merge branch 'v2' into image-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme authored Jun 7, 2023
2 parents a38e3d2 + eba1bf3 commit 69f793d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ func NewPackageManager() *PackageManager {
}
}

_, err = os.Stat(filepath.Join(PackagesBaseDir, PackagesUnstagedFile))
if err != nil {
err = os.WriteFile(
filepath.Join(PackagesBaseDir, PackagesUnstagedFile),
[]byte(""),
0644,
)
if err != nil {
PrintVerbose("PackageManager.NewPackageManager:err: " + err.Error())
panic(err)
}
}

return &PackageManager{}
}

Expand Down

0 comments on commit 69f793d

Please sign in to comment.