Red Hat Bugzilla – Bug 807913
Handle case where latest link already exists, but is not a directory
Last modified: 2012-04-12 21:49:51 EDT
Creation of the link to the latest directory for a snapshot sync currently fails if a file already exists with that name.
The sync operation should instead remove the offending file before creating the new symbolic link.
(Obvious workaround is to delete the file manually and then rerun the sync operation)
Moving to 0.1.0 - this happens regularly when "delete_old_dirs" is set and the previous most recent directory gets deleted during an update.
Initial attempt at fixing in 0.0.13 was incorrect (failed to handle broken symlinks correctly), better test and fix implemented for 0.0.14