Skip to content

Commit

Permalink
revert: revert the InstallInfo Implement (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Dec 30, 2024
1 parent f15df89 commit ba077c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/rauc_online.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ func (r *RAUCService) Install(release codegen.Release, sysRoot string) error {
return InstallRAUC(release, sysRoot, r.InstallRAUCHandler)
}

// return the path of update package in local
func (r *RAUCService) InstallInfo(release codegen.Release, sysRootPath string) (string, error) {
return filepath.Join(config.SysRoot, config.RAUC_RELEASE_PATH, "latest"), nil
// return filepath.Join(config.SysRoot, config.RAUC_RELEASE_PATH, "latest"), nil
// TODO: fix other case might return err
return RAUCFilePath(release)
}

func (r *RAUCService) GetRelease(ctx context.Context, tag string, useCache bool) (*codegen.Release, error) {
Expand Down

0 comments on commit ba077c5

Please # to comment.