Skip to content

Commit 64dfe73

Browse files
committed
Update 1 code files; Update configuration
Modified: • src/omnipkg/core.py (+2/-1 lines) • pyproject.toml (+1/-1 lines) [gitship-generated]
1 parent ec94365 commit 64dfe73

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ backend-path = ["."]
66

77
[project]
88
name = "omnipkg"
9-
version = "3.3.5"
9+
version = "3.4.0"
1010
authors = [
1111
{ name = "1minds3t", email = "1minds3t@proton.me" },
1212
]

src/omnipkg/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13744,10 +13744,11 @@ def smart_uninstall(
1374413744
bubble_dir = dist_info_path.parent
1374513745

1374613746
# A critical sanity check to ensure we're deleting the correct directory.
13747+
def _norm(s): return s.replace('-', '_').lower()
1374713748
expected_bubble_name = f"{canonicalize_name(item_name)}-{item_version}"
1374813749
expected_bubble_name_alt = f"{item_name}-{item_version}"
1374913750
expected_bubble_name_underscored = f"{item_name.replace('-', '_')}-{item_version}"
13750-
if bubble_dir.name in (expected_bubble_name, expected_bubble_name_alt, expected_bubble_name_underscored) and bubble_dir.is_dir():
13751+
if _norm(bubble_dir.name) in (_norm(expected_bubble_name), _norm(expected_bubble_name_alt), _norm(expected_bubble_name_underscored)) and bubble_dir.is_dir():
1375113752
safe_print(_("🗑️ Deleting bubble directory: {}").format(bubble_dir))
1375213753
shutil.rmtree(bubble_dir, ignore_errors=True)
1375313754
else:

0 commit comments

Comments
 (0)