Permalink
Browse files

Skip creating existing static file links.

  • Loading branch information...
1 parent 01bd1ea commit 74291f9df17cc7152519ef1814da94f02f466ab6 @chromakode chromakode committed Jun 17, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 r2/r2/lib/static.py
View
@@ -35,7 +35,9 @@ def update_static_names(names_file, files, make_links=False):
if make_links:
for name, staticname in names.iteritems():
- os.symlink(name, os.path.join(base, staticname))
+ link = os.path.join(base, staticname)
+ if not os.path.exists(link):
+ os.symlink(name, link)
return names

0 comments on commit 74291f9

Please sign in to comment.