Improved creation of symlink

Bug #1801539 reported by Matthias Homann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Fix Released
Undecided
Unassigned

Bug Description

Before creating the symlink to the installed program, the installation script currently only checks if there is a file with the same name. This could be the correct symlink from a previous installation, but also a broken symlink or just a file with the same name (maybe not very likely).
In case of a broken symlink, os.path.exists returns False but the creation of a new symlink will fail with FileExistsError.

I suggest to add a few more checks and to provide the user some hints in case the symlink is not created.

You can find a diff to script version 0.2.5 with my suggested changes at https://github.com/palto42/rapid-photo-downloader/commit/ca2a2031069a03c2f6916b87179a9d021c351e91

Damon Lynch (dlynch3)
Changed in rapid:
status: New → Fix Committed
milestone: none → 0.9.13
Damon Lynch (dlynch3)
Changed in rapid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.