You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: