Skip to content

Commit

Permalink
Remove deprecated cpackget pack command
Browse files Browse the repository at this point in the history
  • Loading branch information
brondani authored Nov 22, 2023
1 parent ec13861 commit d7b1a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/builder/cproject/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,15 @@ func (b CprjBuilder) Build() error {
err := errors.New("cpackget was not found, missing packs cannot be downloaded")
return err
}
args = []string{"pack", "add", "--agree-embedded-license", "--no-dependencies", "--packs-list-filename", vars.packlistFile}
args = []string{"add", "--agree-embedded-license", "--no-dependencies", "--packs-list-filename", vars.packlistFile}
if b.Options.Debug {
args = append(args, "--verbose")
} else if b.Options.Quiet {
args = append(args, "--quiet")
}
_, err = b.Runner.ExecuteCommand(vars.cpackgetBin, b.Options.Quiet, args...)
if err != nil {
log.Error("error executing 'cpackget pack add'")
log.Error("error executing 'cpackget add'")
return err
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion pkg/builder/csolution/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (b CSolutionBuilder) installMissingPacks() (err error) {
if pack == "" {
continue
}
args = []string{"pack", "add", pack, "--force-reinstall", "--agree-embedded-license"}
args = []string{"add", pack, "--force-reinstall", "--agree-embedded-license"}
cpackgetBin := filepath.Join(b.InstallConfigs.BinPath, "cpackget"+b.InstallConfigs.BinExtn)
if _, err := os.Stat(cpackgetBin); os.IsNotExist(err) {
log.Error("cpackget was not found")
Expand Down

0 comments on commit d7b1a57

Please sign in to comment.