Skip to content

Commit

Permalink
Create links directory for rsync remote (#726)
Browse files Browse the repository at this point in the history
Sometimes, this isn't created beforehand, causing errors when syncing symlinks
from an rsync:// remote store.
  • Loading branch information
TimoWilken authored Nov 5, 2021
1 parent 61a6396 commit 2c6eefd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alibuild_helpers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def syncToLocal(self, p, spec):
debug("Updating remote store for package %s with hashes %s", p,
", ".join(spec["remote_hashes"]))
err = execute("""\
mkdir -p {workDir}/{linksPath}
rsync -rlvW --delete {remoteStore}/{linksPath}/ {workDir}/{linksPath}/ || :
for storePath in {storePaths}; do
# Only get the first matching tarball. If there are multiple with the
Expand Down

0 comments on commit 2c6eefd

Please sign in to comment.