Skip to content

Commit

Permalink
Skip creating existing static file links.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Jun 20, 2011
1 parent 01bd1ea commit 74291f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r2/r2/lib/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 74291f9

Please sign in to comment.