Skip to content

Commit

Permalink
Merge pull request #80 from bepoli/fix_remove_links
Browse files Browse the repository at this point in the history
Fix links not removed after uninstalling package
  • Loading branch information
mariusvniekerk authored Aug 8, 2024
2 parents 6e31d0b + 2e46075 commit 5260187
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion condax/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def remove_links(executables_to_unlink: Collection[Path], env_prefix: Path) -> N
os.unlink(link)
removed_links[exe] = link
else:
if os.path.islink(link) and (os.readlink(link) == exe):
if os.path.islink(link) and (os.readlink(link) == str(exe)):
os.unlink(link)
removed_links[exe] = link

Expand Down
23 changes: 23 additions & 0 deletions news/fix_remove_links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### Added:

* <news item>

### Changed:

* <news item>

### Deprecated:

* <news item>

### Removed:

* <news item>

### Fixed:

* Fix links not removed after uninstalling package

### Security:

* <news item>

0 comments on commit 5260187

Please sign in to comment.