Skip to content

Commit

Permalink
review requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ykpauneu committed May 14, 2024
1 parent 38e585f commit 8486013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pulse/core/core_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
STDLIB_NAME: str = "omp-stdlib"
6 changes: 3 additions & 3 deletions pulse/package/package_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pulse.core.core_dir import PACKAGE_PATH, REQUIREMENTS_PATH, PLUGINS_PATH
import pulse.package.package_utils as package_utils
import pulse.core.git.git_get as git_get
import pulse.core.core_constants as core_constants
import shutil
STDLIB_NAME: str = "omp-stdlib"


@click.command
Expand Down Expand Up @@ -43,8 +43,8 @@ def uninstall(package: str, recursive: bool, force: bool) -> None:
if not os.path.exists(package_path):
return click.echo(f"Package {package} was not found.")

if re_package[1] == STDLIB_NAME and not force:
return click.echo(f"Unable to remove {STDLIB_NAME}, use the -f (--force) flag to remove the package")
if re_package[1] == core_constants.STDLIB_NAME and not force:
return click.echo(f"Unable to remove {core_constants.STDLIB_NAME}, use the -f (--force) flag to remove the package")

package_type = package_utils.get_local_package_type(re_package[0], re_package[1], re_package[2])
if recursive:
Expand Down

0 comments on commit 8486013

Please sign in to comment.