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

Broken symlinks are not uninstalled. #106

Open
SergTormozov opened this issue Sep 1, 2011 · 0 comments
Open

Broken symlinks are not uninstalled. #106

SergTormozov opened this issue Sep 1, 2011 · 0 comments

Comments

@SergTormozov
Copy link

I run into the problem that broken symlinks are not uninstalled. it may happen for example when link target is uninstalled before symlink. I found that it happens because ![file exists $file] is always true for broken symlinks
(see ::InstallJammer::actions::UninstallSelectedFiles) so they are just skipped during uninstall.

So far I corrected the code as follow (in my copy of installjammer)

---- installjammer\lib\Actions\UninstallActions\UninstallSelectedFiles.action ----
--- old ---
if {![file exists $file]} { continue }
if {[file type $file] eq "directory"} { continue }
--new
if {[catch {file lstat $file s} error]} { continue }

if {$s(type) eq "directory"} { continue }

Thanks!
-- Serg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant