Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed uninstall #24

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/uninstall.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ int uninstall(char* name)
char* SPM_DIR = getenv("SOVIET_SPM_DIR");

// Generate the path to the package's SPM file
char dataSpmPath[MAX_PATH];
// Use the default format to generate the path
// Note: The variable DEFAULT_FORMAT is not defined; you may need to replace it with the correct environment variable or value.
// For example, you can use getenv("SOVIET_DEFAULT_FORMAT") or replace it with a string.
// getenv("DEFAULT_FORMAT");
char* dataSpmPath[MAX_PATH];
sprintf(dataSpmPath, "%s/%s.%s", getenv("SOVIET_SPM_DIR"), name, getenv("SOVIET_DEFAULT_FORMAT"));

// Verify if the package is installed
dbg(3, "Verifying if the package is installed at %s", dataSpmPath);
Expand Down