icculus / mojosetup

A standalone installer for Linux software.
https://icculus.org/mojosetup/
Other
68 stars 7 forks source link

Symlinks don't get deleted - Uninstallation fails #48

Closed SDLBugzilla closed 2 years ago

SDLBugzilla commented 2 years ago

This bug report was migrated from our old Bugzilla tracker.

Reported in version: unspecified Reported for operating system, platform: Linux, PC

Comments on the original bug report:

On 2009-01-17 06:13:23 -0500, wrote:

In my test setup two files get installed:

file1: is a regular file file2: is a symbolic link to file1

If I run the uninstall script the symlink is not deleted and the uninstallation fails because the installer can not remove the installation directory which is not empty.

Problem is file1 is deleted before file2.

mojosetup_mainline.lua:146 - function do_delete The call to MojoSetup.platform.exists returns false for file2 and so this function does not delete file2.

The cause of this is in: platform_unix.c:564 - function MojoPlatform_exists access(dir, F_OK) return -1 because file1 was deleted and file2 is now a broken symlink.

On 2009-01-31 19:08:42 -0500, Reto Schneider wrote:

Is this but extremely hard to fix? Is there a ETA for a (hopefully coming) fix?

Thanks, Reto

On 2009-02-05 01:27:46 -0500, Ryan C. Gordon wrote:

Should be fixed in hg revision 616:f7597a3863cd ... please let me know if it isn't.

--ryan.

On 2009-02-06 12:57:15 -0500, wrote:

My test installer scenario uninstalls fine now. Thanks for the fix.