Bug 807913 - Handle case where latest link already exists, but is not a directory
Summary: Handle case where latest link already exists, but is not a directory
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: PulpDist
Classification: Community
Component: Pulp Plugins
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 0.1.0
Assignee: Nick Coghlan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-29 06:53 UTC by Nick Coghlan
Modified: 2012-04-13 01:49 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-13 01:49:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Nick Coghlan 2012-03-29 06:53:25 UTC
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)

Comment 1 Nick Coghlan 2012-04-12 06:53:28 UTC
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.

Comment 2 Nick Coghlan 2012-04-13 01:49:51 UTC
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


Note You need to log in before you can comment on or make changes to this bug.