Skip to content

Commit

Permalink
Merge branch 'main' into fix/disallow-update-stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon authored Oct 16, 2024
2 parents 9aef6f1 + 9c10e8c commit 16ad82c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/pkgManagers.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,11 @@ func updatePkgManager(cmd *cobra.Command, args []string) error {
return error
}

if pkgmanager.BuiltIn {
cmdr.Error.Println(apx.Trans("pkgmanagers.update.error.builtIn"))
os.Exit(126)
}

if autoRemove == "" {
if !assumeYes {
cmdr.Info.Printfln(apx.Trans("pkgmanagers.update.info.askNewCommand"), "autoRemove", pkgmanager.CmdAutoRemove)
Expand Down
1 change: 1 addition & 0 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ pkgmanagers:
error:
noName: "No name specified."
missingCommand: "Missing command for %s."
builtIn: "Built-in package managers cannot be modified."
rm:
description: "Remove the specified package manager."
error:
Expand Down

0 comments on commit 16ad82c

Please sign in to comment.