Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Coughlin
GraceDB Server
Commits
007406da
Commit
007406da
authored
12 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue #692, broken symlinks on cluster fs
parent
8d166754
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/vfile.py
+6
-4
6 additions, 4 deletions
utils/vfile.py
with
6 additions
and
4 deletions
utils/vfile.py
+
6
−
4
View file @
007406da
...
...
@@ -126,10 +126,12 @@ class VersionedFile(file):
try
:
# XXX Another race condition. File will not exist for a very brief time.
os
.
unlink
(
self
.
fullname
)
except
:
# Do not care if file does not exist.
pass
os
.
symlink
(
self
.
_name_for_version
(
last_version
),
self
.
fullname
)
except
OSError
,
e
:
# Do not care if file does not exist, otherwise raise exception.
if
e
.
errno
!=
errno
.
ENOENT
:
raise
name
=
os
.
path
.
basename
(
self
.
_name_for_version
(
last_version
))
os
.
symlink
(
name
,
self
.
fullname
)
return
# XXX This fails when renaming/mv-ing across devices.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment