Critical Bug Fix: Incorrect Function Calls in Command Handlers #4

Closed
opened 2025-05-29 10:47:25 +00:00 by AnmiTaliDev · 0 comments
AnmiTaliDev commented 2025-05-29 10:47:25 +00:00 (Migrated from github.com)

Bug: Incorrect Function Calls in Remove and Update Commands

Description

The remove and update commands both incorrectly call utils::install_package() instead of their respective functions.

Location

File: src/main.cpp

  • Line 54: Remove command calls utils::install_package(pkg)
  • Line 59: Update command calls utils::install_package(pkg)

Expected Behavior

  • Remove command should call utils::remove_package(pkg)
  • Update command should call utils::update_package(pkg)

Impact

Critical - Users attempting to remove or update packages will instead install them.

# Bug: Incorrect Function Calls in Remove and Update Commands ## Description The remove and update commands both incorrectly call `utils::install_package()` instead of their respective functions. ## Location File: `src/main.cpp` - Line 54: Remove command calls `utils::install_package(pkg)` - Line 59: Update command calls `utils::install_package(pkg)` ## Expected Behavior - Remove command should call `utils::remove_package(pkg)` - Update command should call `utils::update_package(pkg)` ## Impact Critical - Users attempting to remove or update packages will instead install them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
core/tulpar#4
No description provided.