Skip to content

Commit

Permalink
Merge pull request #100 from mwestphall/bugfix/regenerate-outdated-st…
Browse files Browse the repository at this point in the history
…atic-data-symlinks

Remove incorrect check for skipping updates to static data symlinks
  • Loading branch information
matyasselmeci authored Nov 27, 2024
2 parents cea9b40 + ffb318b commit 1825b27
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions distrepos/symlink_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ def link_static_data(options: Options, repo_name: str = "osg") -> t.Tuple[bool,
# create missing symlinks to static_src in data_dist
for pth in static_src.iterdir():
dest = data_dst / pth.name
# Continue if symlink is already correct
if dest.is_symlink() and dest.readlink() == pth:
continue

if dest.is_symlink() and dest.readlink() != pth:
# Reassign incorrect symlinks
if dest.exists() and dest.is_symlink():
# Unlink, then re-link the symlink
dest.unlink()
elif dest.exists():
# Fail if dest is not a symlink
Expand Down

0 comments on commit 1825b27

Please sign in to comment.